Code Comments
Programming Forum and web based access to our favorite programming groups.hi, it would be great if someone helps me: The task is best described with a real life example: inputfile: " irrelevant line cdecdddd irrelevant line cewwercv PATTERN 3 outputline 1 outputline 2 outputline 3 PATTERN irrelevant line ffff irrelevant line cde irrelevant line ce " outputfile: " PATTERN 3 outputline 1 outputline 2 outputline 3 PATTERN " thanks in advance !
Post Follow-up to this messageHi, In article <1b5c0c3e.0411190013.4f1d5784@posting.google.com>, michael wrote: > The task is best described with a real life example: awk '/PATTERN 3/,/PATTERN/' should do what you need. Stepan Kasal
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.