Unzip again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 25 Aug 2002, Kerry Hoath wrote:

> No Toby; the shell expands the file names.
> assume we have foo.zip and bar.zip in the current directory;
> unzip *.zip will pass the command line
> unzip bar.zip foo.zip
> and since unzip can't find foo.zip in bar.zip it failes.
> You need to do
> unzip \*.zip
> or
> unzip "*.zip"
> or anything else thaat will let the wildcards past the shell.

Arg, forgot that, sorry.  Will command substitution work?  Like:
unzip `ls -l *.zip`
or pipes
ls |grep zip |unzip
or even:
ls *.zip | unzip

> For an example of shell wildcard expantion try
> echo *
> in a directory; poor-man's ls.

Haha yes, very poor, it doesn't even wrap gracefully!

Cheers.

-- 
Toby Fisher	Email: toby at g0ucu.freeserve.co.uk
Tel.: +44(0)1480 417272	Mobile: +44(0)7974 363239
ICQ: #61744808
   Please avoid sending me Word or PowerPoint attachments.
   See http://www.fsf.org/philosophy/no-word-attachments.html






[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux