DonationCoder.com Software > Post New Requests Here
Delete All Text In File Until Particular String
(1/1)
nkormanik:
Wondering how one might delete all text up until finding a particular text string.
Suppose the text string is “WXYZ”.
And suppose there are around 100 lines above the “WXYZ” line.
Too, suppose we have 1000 files to do this to.
Any suggestions appreciated.
Nicholas Kormanik
Ath:
Use sed, the Stream EDitor, known from Linux, but also available for Windows. And here is a SO answer with details
The Windows download can be found here: http://gnuwin32.sourceforge.net/packages/sed.htm
nkormanik:
Thanks Ath. Sed it is, then.
Navigation
[0] Message Index
Go to full version