zip Dateien automatisch mit Unterverzeichnissen entpacken
Jens Breit
jcbreit at gmx.de
Thu Jul 15 21:34:56 CEST 2004
Siegfried Peter (Thu, Jul 15, 2004 at 09:04:34PM +0200):
> find -iname *.zip -exec unzip -d {} {} \;
> geht jedoch nicht, da Konflikt Dateiname <> Verzeichnisname.
> Wie kriege ich das .zip aus den Namen?
find -iname *.zip -exec unzip -d `echo {} | sed 's/\.zip$//'` {} \;
oder so ähnlich jedenfalls.
Grüße,
Jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20040715/af1834f3/attachment.sig>
More information about the Linux
mailing list