unzip -l archive.zip | grep \.out$ | awk '{ print $4 }' | xargs unzip +archive.zip
Note however, I would not call this portable because it is dependent upon the output of the unzip binary to place the file name of archive members as the fourth element on the line (which is at least what unzip on our Solaris development box does). A more portable overall method would be to use Archive::Zip such as suggested by the ever venerable Anonymous Monk here rather than depending upon the output of external binaries.
perl -le 'print+unpack"N",pack"B32","00000000000000000000001001100101"'
In reply to Re: Re: Reading the Zipped Files.
by rob_au
in thread Reading the Zipped Files.
by artist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |