views:

31

answers:

1

I have a text file that has the following layout:

text
text
..
CUT HERE
text
text
..

The literal CUT HERE appears only once. What I want to do using shell scripting, is to produce another file containing all the text below CUT HERE, i.e. ignore whatever above CUT HERE.

Thanks.

+3  A: 
sed '0,/CUT HERE/d' file > new_file
Matthew Flaschen
Thanks that would do the job.
M.S.