in reply to loading a hash of hashes from UNIX command output
tapeutil -f /dev/smc0 inventory | perl -le' my $vol = ( sort grep /^ *Volume Tag[ .]+(.*)/, <> )[-1]; print ++$vol; '
Your requirements are very unclear to me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: loading a hash of hashes from UNIX command output
by novy (Initiate) on Dec 06, 2009 at 23:28 UTC | |
by ikegami (Patriarch) on Dec 07, 2009 at 00:11 UTC |