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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-25-2003, 09:25 PM
|
#1
|
|
Member
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288
Rep:
|
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?
|
|
|
|
11-25-2003, 09:37 PM
|
#2
|
|
Member
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253
Rep:
|
I've had limited success using wildcards.
Can you try something like:
?
Not sure if that'll work for you.
|
|
|
|
11-26-2003, 04:07 PM
|
#3
|
|
Member
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288
Original Poster
Rep:
|
What if I want to extract to an existing directory?
|
|
|
|
11-26-2003, 04:16 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
find -iname "*<common bit of skins names*" -exec tar xv[jz]f {} -c <target directory> \;
Cheers,
Tink
|
|
|
|
11-26-2003, 05:14 PM
|
#5
|
|
Member
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288
Original Poster
Rep:
|
I get:
find: missing argument to `-exec'
|
|
|
|
11-26-2003, 05:17 PM
|
#6
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
Copy & paste your exact commandline?
Cheers,
Tink
|
|
|
|
11-27-2003, 09:41 AM
|
#7
|
|
Member
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253
Rep:
|
Quote:
Originally posted by Baldorg
I get:
find: missing argument to `-exec'
|
Give the exact command you entered to get this error.
|
|
|
|
11-27-2003, 12:42 PM
|
#8
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
*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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:42 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|