perl -ne 'print if (/^\[moo]/ and $c = 0, 1) .. (/^\[cow]/ and $c = 0, 1) and $c ++' log.log
Abigail
In reply to Re: print data between two regular expressions
by Abigail-II
in thread print data between two regular expressions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |