hmmm...are there any more requirements?:) Try this:
Tested it here with compressed source files. Substitute with ZIP and or
whatever you have.
for name in `ls *.Z`
do
#echo ${name} | sed "s/.c.Z//"
echo "mkdir ` echo ${name} | sed "s/.c.Z//"`"
#echo ${newdir}
echo uncompress ${name} ` echo ${name} | sed "s/.c.Z//"`
done
HTH,
Krishna
> Hi Rainer, thanks for your answer.
> It worked great. Now what I would like is to have, for each given archive
> file, a new dir created, with the same file name (no extension) and the
> content of the given archive into the new directory.
> So the content of archive1.zip would be extracted into a new archive1 dir.
> Any idea of how I can do that?
> Thanks again.
> -- Adrien
> >> I need to unzip dozens of files witin one dir on my UNIX server (Linux)
> >> I tried to cd to that dir and run:
> >> unzip *.ZIP or unzip ./*.ZIP
> >> But all I get is
> >> "caution: filename not matched: [filename]"
> >> for each file...
> >> (All my files are in upper case)
> >> I tried with several options and couldn't get it to work.
> >> Unzipping files one at a time does work though...
> >> Any clue on how to unzip multiple files at once? Thanks in advance.
> >Hi Adrien,
> >try this:
> >for name in *.ZIP
> >do
> > unzip $name
> >done
> >Regards Rainer