Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
un 7zip lots of archives [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
linksocc
n00b
n00b


Joined: 26 Sep 2003
Posts: 34
Location: Mexico

PostPosted: Tue Apr 18, 2006 9:26 pm    Post subject: un 7zip lots of archives [solved] Reply with quote

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
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Tue Apr 18, 2006 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Apr 18, 2006 9:37 pm    Post subject: Reply with quote

Moved from Portage & Programming to Other Things Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
linksocc
n00b
n00b


Joined: 26 Sep 2003
Posts: 34
Location: Mexico

PostPosted: Tue Apr 18, 2006 9:41 pm    Post subject: Reply with quote

i'll try it lets see what comes up
_________________
"What doesn't kill you make you stronger"
Back to top
View user's profile Send private message
linksocc
n00b
n00b


Joined: 26 Sep 2003
Posts: 34
Location: Mexico

PostPosted: Tue Apr 18, 2006 9:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Tue Apr 18, 2006 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Tue Apr 18, 2006 10:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
linksocc
n00b
n00b


Joined: 26 Sep 2003
Posts: 34
Location: Mexico

PostPosted: Tue Apr 18, 2006 10:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
crazycat
l33t
l33t


Joined: 26 Aug 2003
Posts: 838
Location: Hamburg, Germany

PostPosted: Wed Apr 26, 2006 12:16 pm    Post subject: Reply with quote

Try
Code:

7z x "*.7z"

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum