in reply to Getting lines in a file between two patterns
perl -e 'while (<>){print if (/^START/../^END/);}' input.txt
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Getting lines in a file between two patterns
by frozenwithjoy (Priest) on Jul 05, 2012 at 05:21 UTC |