[prev] [thread] [next] [lurker] [Date index for 2007/02/20]
--7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 20, 2007 at 03:12:57PM +0000, Robert Rothenberg wrote: >=20 > Take the following zip file >=20 > $ unzip -l foo > Archive: foo.zip > Length Date Time Name > -------- ---- ---- ---- > 0 02-20-07 15:05 foo/ > 0 02-20-07 15:05 foo/file1 > 0 02-20-07 15:05 foo/bar/ > 0 02-20-07 15:05 foo/bar/file2 > -------- ------- > 0 4 files >=20 >=20 > Now try this: >=20 > $ unzip -l foo foo/* > Archive: foo.zip > Length Date Time Name > -------- ---- ---- ---- > 0 02-20-07 15:05 foo/file1 > -------- ------- > 0 1 file >=20 > Oh, but what if I also want to list all files below foo? There's no > equivalent -r option for recursive. So I cannot list or extract files in > foo/bar without specifying them manually. That's not what I get: $ unzip -l foo.zip=20 Archive: foo.zip Length Date Time Name -------- ---- ---- ---- 0 02-20-07 16:35 foo/ 0 02-20-07 16:35 foo/file1 0 02-20-07 16:35 foo/bar/ 0 02-20-07 16:35 foo/bar/file2 -------- ------- 0 4 files $ unzip -l foo.zip foo/* Archive: foo.zip Length Date Time Name -------- ---- ---- ---- 0 02-20-07 16:35 foo/ 0 02-20-07 16:35 foo/file1 0 02-20-07 16:35 foo/bar/ 0 02-20-07 16:35 foo/bar/file2 -------- ------- 0 4 files However: $ unzip foo Archive: foo.zip creating: foo/ extracting: foo/file1 =20 creating: foo/bar/ extracting: foo/bar/file2 =20 $ unzip -l foo.zip foo/* Archive: foo.zip Length Date Time Name -------- ---- ---- ---- 0 02-20-07 16:35 foo/file1 -------- ------- 0 1 files Perhaps you suffer from the fact that your shell is expanding the *? Abigail --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFF2xWdBOh7Ggo6rasRAiXTAJ9iqIcMSBXED6h9uWB5f3hpzPTsAgCfRBAv 7JVeyCX3QlvgmCktwQLXBsc= =ueNy -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z--
Generated at 06:02 on 21 Feb 2007 by mariachi 0.52