in reply to Re: print data between two regular expressions
in thread print data between two regular expressions
perl -ne'print if /^\[moo\]/ ... /^\[/ and !/^\[/' log.txt
The 3 dot operator ... works like the 2 dot operator .. except that the right operand isn't tested until the next evaluation.
--
John.
|
|---|