(ab)uses the flip-flop operator. See "Range operator" in http://perldoc.perl.org/perlop.html.perl -ne 'push @arr,$_ if m/^Status of the log/..undef}{print for @ar +r' Your-log-file-name.here
When in doubt, mumble; when in trouble, delegate; when in charge, ponder. -- James H. Boren
In reply to Re: get few lines from a file
by NetWallah
in thread get few lines from a file
by agreen54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |