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

[no subject]



dir = dir with files in them

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

Mike


Trey Sizemore wrote:
> If I have a folder containing a number of .tar.gz and .tgz files and wish to 
> untar them all, how would I go about doing so?  I've tried tar xvfz *.tar.gz 
> and tar xvfz *.gz as well as several other variations, but they all just 
> error out with something like all the files listed saying 'Not found in 
> archive'
> 
> Thanks.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ale mailing list
> 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00995" href="msg00995.html">[ale] Untar a bunch of .tar.gz and .tgz files</a></strong>
<ul><li><em>From:</em> trey at fastmail.fm (Trey Sizemore)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00992" href="msg00992.html">[ale] Untar a bunch of .tar.gz and .tgz files</a></strong>
<ul><li><em>From:</em> trey at fastmail.fm (Trey Sizemore)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00992.html">[ale] Untar a bunch of .tar.gz and .tgz files</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00994.html">[ale] Untar a bunch of .tar.gz and .tgz files</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00992.html">[ale] Untar a bunch of .tar.gz and .tgz files</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00995.html">[ale] Untar a bunch of .tar.gz and .tgz files</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00993"><strong>Date</strong></a></li>
<li><a href="threads.html#00993"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

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