tapeutil -f /dev/smc0 inventory | perl -le' my $vol = ( sort grep /^ *Volume Tag[ .]+(.*)/, <> )[-1]; print ++$vol; '
Your requirements are very unclear to me.
In reply to Re: loading a hash of hashes from UNIX command output
by ikegami
in thread loading a hash of hashes from UNIX command output
by novy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |