in reply to Printing Last Element of a line using perl memory?
perl -lne 's[\A\s+][]; s[\s+\Z][]; $last=pop [split /\s+/] if $_; END +{ print $last }' scan.log
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Printing Last Element of a line using perl memory?
by LanX (Saint) on Feb 15, 2013 at 09:42 UTC | |
by pemungkah (Priest) on Mar 11, 2013 at 19:59 UTC | |
by LanX (Saint) on Mar 11, 2013 at 20:09 UTC | |
|
Re^2: Printing Last Element of a line using perl memory?
by jaredor (Priest) on Feb 15, 2013 at 18:12 UTC | |
by pemungkah (Priest) on Mar 11, 2013 at 20:02 UTC |