in reply to Re: Getting lines in a file between two patterns
in thread Getting lines in a file between two patterns
This will also print START/END, if this is not desired, try:
perl -ne 'if (/START/../END/) {print unless /START/ or /END/}'
|
---|
In Section
Seekers of Perl Wisdom