update: List::Pairwise onelinerlscfg -vl hdisk*|perl -MList::Pairwise=mapp -00e'print mapp{$a=~/^(hdi +sk\d+)/&&"$1 ",$b=~/Serial Number[.]+(\w+)/m&&"$1\n"}<>'
print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});
In reply to Re: Parsing output from a command
by codeacrobat
in thread Parsing output from a command
by ronix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |