[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



-----Original Message-----
From: ale-bounces at ale.org [<a  rel="nofollow" href="mailto:ale-bounces";>mailto:ale-bounces</a> at ale.org]On Behalf Of Mike
Murphy
Sent: Wednesday, September 29, 2004 3:50 PM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] Untar a bunch of .tar.gz and .tgz files


The globs are irritating the shell and/or tar. One quick way to to di it 
(assuming gnu tar and a bourne shell like shell):

dir = dir with files in them

cd $dir; for file in `ls *.tar.gz`; do tar -zxf $file; done

Mike


Trey Sizemore wrote:
&gt; If I have a folder containing a number of .tar.gz and .tgz files and wish
to 
&gt; untar them all, how would I go about doing so?  I've tried tar xvfz
*.tar.gz 
&gt; and tar xvfz *.gz as well as several other variations, but they all just 
&gt; error out with something like all the files listed saying 'Not found in 
&gt; archive'
&gt; 
&gt; Thanks.
&gt; 
&gt; 
&gt; 
&gt; ------------------------------------------------------------------------
&gt; 
&gt; _______________________________________________
&gt; Ale mailing list
&gt; Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>

-- 

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Mike Murphy
781 Inman Mews Drive Atlanta GA 30307
Landline: 404-653-1070
Mobile: 404-545-6234
Email: mike at tyderia.net
AIM: mmichael453
JDAM: 33:45:14.0584N  84:21:43.038W
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
_______________________________________________
Ale mailing list
Ale at ale.org
<a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00993.html">[ale] Untar a bunch of .tar.gz and .tgz files</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00995.html">[ale] Untar a bunch of .tar.gz and .tgz files</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00995.html">[ale] Untar a bunch of .tar.gz and .tgz files</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01002.html">[ale] OT: Origins</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00994"><strong>Date</strong></a></li>
<li><a href="threads.html#00994"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>