Cut a file based on a text marker
Posted
by Mustafa
on Stack Overflow
See other posts from Stack Overflow
or by Mustafa
Published on 2010-06-15T01:34:27Z
Indexed on
2010/06/15
1:42 UTC
Read the original article
Hit count: 241
shell-scripting
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.
© Stack Overflow or respective owner