View previous topic :: View next topic |
Author |
Message |
linksocc n00b
Joined: 26 Sep 2003 Posts: 34 Location: Mexico
|
Posted: Tue Apr 18, 2006 9:26 pm Post subject: un 7zip lots of archives [solved] |
|
|
i have a folder full of p7zips and i would like to know if theres a way to unpack them all without having to manually unpack them one by one _________________ "What doesn't kill you make you stronger"
Last edited by linksocc on Tue Apr 18, 2006 10:42 pm; edited 1 time in total |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Tue Apr 18, 2006 9:33 pm Post subject: |
|
|
I don't know what the command line arguments to 7zip are to unpack, but using unzip as an example, you could do this:
Code: | for i in *.zip
do
unzip $i
done |
This is just an example using unzip, adjust accordingly for 7zip. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Tue Apr 18, 2006 9:37 pm Post subject: |
|
|
Moved from Portage & Programming to Other Things Gentoo. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
linksocc n00b
Joined: 26 Sep 2003 Posts: 34 Location: Mexico
|
Posted: Tue Apr 18, 2006 9:41 pm Post subject: |
|
|
i'll try it lets see what comes up _________________ "What doesn't kill you make you stronger" |
|
Back to top |
|
|
linksocc n00b
Joined: 26 Sep 2003 Posts: 34 Location: Mexico
|
Posted: Tue Apr 18, 2006 9:54 pm Post subject: |
|
|
didnt worked it gave an error that goes like this
Code: |
adrian@localhost ~/7zipfiles $ ./un7zip
7-Zip 4.39 beta Copyright (c) 1999-2006 Igor Pavlov 2006-04-13
p7zip Version 4.39 (locale=en_US,Utf16=on,HugeFiles=on,1 CPU)
./un7zip: line 2: 519 Aborted 7z e $i
7-Zip 4.39 beta Copyright (c) 1999-2006 Igor Pavlov 2006-04-13
p7zip Version 4.39 (locale=en_US,Utf16=on,HugeFiles=on,1 CPU)
./un7zip: line 2: 520 Aborted 7z e $i
|
i partially solved the problem by renaming the archives to filenames without spaces but theres the other problem how would i rename all the arcives to remove spaces _________________ "What doesn't kill you make you stronger" |
|
Back to top |
|
|
Gergan Penkov Veteran
Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Tue Apr 18, 2006 10:27 pm Post subject: |
|
|
you could try sth like this, if you have problems with the spaces:
Code: | find . -name '*.zip' -print0 | xargs -0 7z x |
well I don't know the extension for 7zip it's not zip probably, so you should change it to the real one. _________________ "I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Tue Apr 18, 2006 10:36 pm Post subject: |
|
|
You could try just adding quotes, like so: "$i" _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
linksocc n00b
Joined: 26 Sep 2003 Posts: 34 Location: Mexico
|
Posted: Tue Apr 18, 2006 10:42 pm Post subject: |
|
|
yabbadabbadont wrote: | You could try just adding quotes, like so: "$i" |
that worked out pretty well thanks _________________ "What doesn't kill you make you stronger" |
|
Back to top |
|
|
crazycat l33t
Joined: 26 Aug 2003 Posts: 838 Location: Hamburg, Germany
|
Posted: Wed Apr 26, 2006 12:16 pm Post subject: |
|
|
Try
The great thing about 7z is that it can also unpack rars and i think ace too and some other wired sfx formats so you actually dont need opensource unrar utility which doesn't work most of the time anyway. |
|
Back to top |
|
|
|