Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
exstract mulitiple tar files ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
kkj
n00b
n00b


Joined: 17 Jul 2002
Posts: 52
Location: Denmark, aarhus

PostPosted: Mon Oct 21, 2002 3:17 pm    Post subject: exstract mulitiple tar files ? Reply with quote

I have a dir whit 50+ tar files, and I would like to extract them.....
I was hoping i could do it like this...


Code:

cd /"where I would like the un tar files to be"
tar xvzf /source Off All the Tar Files/*



but it dosnt work ?
The error I get is
Code:

tar: GKrellM-skins/4D_Ladies.tar.gz: Not found in archive
tar: GKrellM-skins/Absolute_E.tar.gz: Not found in archive
tar: GKrellM-skins/AbToenAlloy-green.tar.gz: Not found in archive
tar: GKrellM-skins/aCOW.tar.gz: Not found in archive
tar: GKrellM-skins/Acqua-Graphite.gkrellm.tar.gz: Not found in archive
tar: GKrellM-skins/Acqua.gkrellm.tar.gz: Not found in archive
tar: Error exit delayed from previous errors

Help please !!!!!!!!!!!!!!!!!
Back to top
View user's profile Send private message
Larde
Guru
Guru


Joined: 07 Jun 2002
Posts: 313
Location: Duesseldorf, Germany

PostPosted: Mon Oct 21, 2002 4:52 pm    Post subject: Reply with quote

Loop it a little:
Code:
$ for i in *gz; do tar xfz $i; done


Hth :-),
Larde.

edit: I assume there are no filenames containing space characters?
_________________
Someday this will be my home... http://moonage.net/
I'll make you a deal
I'll say I came from Earth and my tongue is taped
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Oct 21, 2002 5:02 pm    Post subject: Reply with quote

Unless all of the tar files create there own subdir, you could end up with a mess.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
kkj
n00b
n00b


Joined: 17 Jul 2002
Posts: 52
Location: Denmark, aarhus

PostPosted: Tue Oct 22, 2002 12:00 pm    Post subject: Reply with quote

Larde wrote:
Loop it a little:
Code:
$ for i in *gz; do tar xfz $i; done


Hth :-),
Larde.

edit: I assume there are no filenames containing space characters?


Thx I will try it :) , when I get home from work :(


kanuslupus, I will keep it in my mind, but the tar files only contains pictures...At least I hope so :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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