in reply to get few lines from a file
(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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: get few lines from a file
by agreen54 (Initiate) on Nov 11, 2013 at 20:29 UTC | |
by NetWallah (Canon) on Nov 12, 2013 at 06:05 UTC |