[Novalug] Fill in the blanks?
daniel at yacg.com
Thu Mar 15 21:15:02 EDT 2012
Nevermind... I came up with this:
for fn in `ls -1 *.zip`; do mkdir `basename $fn .zip`; unzip $fn -d
`basename $fn .zip`; done
On 03/15/2012 09:05 PM, Daniel Hauck wrote:
> I want to unzip a bunch of zip files in a directory.
> I also want to unzip the files into subdirectories named after the zip
> filename. So like unzip filename.zip into a directory called "filename"
> I've got this much:
> for fn in `ls -1 *.zip`; do unzip $fn; done
> I know this will use regular expressions but I don't know regular
> expressions. Help?
> Novalug mailing list
> Novalug at calypso.tux.org
More information about the Novalug