luckenbach has asked for the wisdom of the Perl Monks concerning the following question:
I need to be able to grab the 2nd line down from LUN 40, now in shell this is fairly easy; grep "LUN 40" -A2 ./lunreport | tail -1 but i have not a clue how to do this in perl.TABLEROW 40 LUN 40 41943040 60:06:01:60:5C:4F:22:00:88:43:D4:39:04:F7:DD:11 20 RAID1/0 2 2 false 163840 false false true true 12 6 0 2048 false SP B true
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: trying to do a parse based on starting position.
by toolic (Bishop) on Feb 13, 2009 at 21:15 UTC | |
|
Re: trying to do a parse based on starting position.
by Perlbotics (Archbishop) on Feb 13, 2009 at 21:21 UTC | |
by ikegami (Patriarch) on Feb 13, 2009 at 22:30 UTC | |
by Bloodnok (Vicar) on Feb 14, 2009 at 10:59 UTC | |
|
Re: trying to do a parse based on starting position.
by Lawliet (Curate) on Feb 13, 2009 at 21:19 UTC | |
|
Re: trying to do a parse based on starting position.
by jwkrahn (Abbot) on Feb 13, 2009 at 22:45 UTC | |
|
Re: trying to do a parse based on starting position.
by bichonfrise74 (Vicar) on Feb 13, 2009 at 22:05 UTC | |
|
Re: trying to do a parse based on starting position.
by Bloodnok (Vicar) on Feb 14, 2009 at 11:12 UTC |