Hello;
Trying to figure out how to keep just the contents between the two search lines:
awk '/regexp_1/ ,/regexp_2/'
I do not want lines containing regexp_1 and regexp_2 in the output.
Thank you for any ideas
Hello;
Trying to figure out how to keep just the contents between the two search lines:
awk '/regexp_1/ ,/regexp_2/'
I do not want lines containing regexp_1 and regexp_2 in the output.
Thank you for any ideas
awk !(/regexp_1/ || /regexp_2/ ) < infile
That did not quite work as I am looking for contents between the two expressions
but NOT the expressions themselves
Thank you
can you please give a example of what you need ?
nawk '/regex1/{s=1;next}/regex2/{s=0}s' myFile
That did the trick, Thank you very much !!