LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-25-2003, 09:25 PM   #1
Baldorg
Member
 
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288

Rep: Reputation: 30
How do I decompress and desarchive multiple .tar.gz files to a single directory?


I have downloaded a huge load of gkrellm skins and I want to unpack them to their respective directories? How do I do this? I check the manual pages but they are pretty arcane and elusive so I didn't bother cracking my brain in half to even try understanding it....I also checked around but nowone explained this. I also want to run the command in the background, I need to type & before it, right? example:

[root] $ & tar xv......

Right?
 
Old 11-25-2003, 09:37 PM   #2
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
I've had limited success using wildcards.

Can you try something like:
Code:
tar -zxvf *.tar.gz
?

Not sure if that'll work for you.
 
Old 11-26-2003, 04:07 PM   #3
Baldorg
Member
 
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288

Original Poster
Rep: Reputation: 30
What if I want to extract to an existing directory?
 
Old 11-26-2003, 04:16 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
find -iname "*<common bit of skins names*" -exec tar xv[jz]f {} -c <target directory> \;




Cheers,
Tink
 
Old 11-26-2003, 05:14 PM   #5
Baldorg
Member
 
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288

Original Poster
Rep: Reputation: 30
I get:

find: missing argument to `-exec'
 
Old 11-26-2003, 05:17 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Copy & paste your exact commandline?


Cheers,
Tink
 
Old 11-27-2003, 09:41 AM   #7
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
Quote:
Originally posted by Baldorg
I get:

find: missing argument to `-exec'
Give the exact command you entered to get this error.
 
Old 11-27-2003, 12:42 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
*sigh*

You're supposed to replace a few things in
that, mate ...

Code:
find -iname "*<common bit of skins names>*" -exec tar xv[jz]f {} -C <target directory> \;
              ^-------replace-----------^               ^--^        ^----replace-----^
                                                         | 
                                                         | -choose relevant compression method
                                                            and omit []
Also make sure there's a space between {} and \;
This is the most likely cause of the error message you
saw....


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 10 02-23-2008 05:40 AM
How To Merge multiple files into a single PDF ? kkempter Linux - Software 1 10-28-2005 01:02 PM
tar - extracting a single directory from a large archive? lowpro2k3 Linux - General 1 07-24-2005 02:44 AM
decompress tar gz files? buccaneer Linux - Newbie 5 01-19-2004 02:15 AM
unpacking multiple .tar.gz files illtbagu Linux - General 5 01-18-2003 05:43 PM


All times are GMT -5. The time now is 03:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration