in reply to Re: Reading the Zipped Files.
in thread Reading the Zipped Files.
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"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reading the Zipped Files.
by Aristotle (Chancellor) on Jun 04, 2003 at 00:05 UTC | |
|
Re: Re: Re: Reading the Zipped Files.
by Anonymous Monk on Jun 03, 2003 at 22:58 UTC |