<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Unzip or Unrar Many Files at Once in Linux</title>
	<atom:link href="http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/</link>
	<description>Computer Help from your Friendly How-To Geek</description>
	<lastBuildDate>Sun, 22 Nov 2009 04:23:14 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sergio</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-72013</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Sat, 16 May 2009 09:01:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-72013</guid>
		<description>thx a lot!!! :)</description>
		<content:encoded><![CDATA[<p>thx a lot!!! <img src='http://www.howtogeek.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1jackjack</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-69973</link>
		<dc:creator>1jackjack</dc:creator>
		<pubDate>Tue, 07 Apr 2009 23:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-69973</guid>
		<description>I know this page is old, but I just found it when looking for a good unrar script, so thought I would post my final solution. The situation: you&#039;re in a directory with a bunch of folders, each one containing a compressed file. I used to use this script, which found and extracted all the *.rar files:

find -type f -name &#039;*.rar&#039; -exec unrar x {} \;

But then i noticed some of my compressed files were distributed over many &#039;part&#039; files, and occasionally, all of these would be *.rar files, and so this script would try to do the whole decompression for part file, which was annoying, time consuming and more importantly not the elegant solution! So after a bit of reading, I came up with this:

for directory in `ls -d */`; do
  rarFile=`ls $directory &#124; grep -i .rar --max-count 1`;
  unrar e $directory$rarFile;
done

This iterates through each directory at the current level, and for each one finds just the first *.rar file, and extracts it to the current directory.</description>
		<content:encoded><![CDATA[<p>I know this page is old, but I just found it when looking for a good unrar script, so thought I would post my final solution. The situation: you&#8217;re in a directory with a bunch of folders, each one containing a compressed file. I used to use this script, which found and extracted all the *.rar files:</p>
<p>find -type f -name &#8216;*.rar&#8217; -exec unrar x {} \;</p>
<p>But then i noticed some of my compressed files were distributed over many &#8216;part&#8217; files, and occasionally, all of these would be *.rar files, and so this script would try to do the whole decompression for part file, which was annoying, time consuming and more importantly not the elegant solution! So after a bit of reading, I came up with this:</p>
<p>for directory in `ls -d */`; do<br />
  rarFile=`ls $directory | grep -i .rar &#8211;max-count 1`;<br />
  unrar e $directory$rarFile;<br />
done</p>
<p>This iterates through each directory at the current level, and for each one finds just the first *.rar file, and extracts it to the current directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ax3</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-57064</link>
		<dc:creator>Ax3</dc:creator>
		<pubDate>Wed, 03 Sep 2008 20:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-57064</guid>
		<description>Looks like my previous code post didn&#039;t go thru completely. I meant on the second line of code:

do unzip -o -d foldername/ &quot;$f&quot;;

Ax3</description>
		<content:encoded><![CDATA[<p>Looks like my previous code post didn&#8217;t go thru completely. I meant on the second line of code:</p>
<p>do unzip -o -d foldername/ &#8220;$f&#8221;;</p>
<p>Ax3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ax3</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-57063</link>
		<dc:creator>Ax3</dc:creator>
		<pubDate>Wed, 03 Sep 2008 20:22:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-57063</guid>
		<description>Very useful tutorial! Thanks!

I modified mine a bit to account for archives which ask for confirmation.  If you &#039;man unzip&#039; you&#039;ll find a -o switch which: &quot;-o  overwrite files WITHOUT prompting&quot;

So my .sh script amounted to: 

for f in *.zip;
do unzip -o -d  &quot;$f&quot;;
done

Hope this helps someone! Regards,
Ax3</description>
		<content:encoded><![CDATA[<p>Very useful tutorial! Thanks!</p>
<p>I modified mine a bit to account for archives which ask for confirmation.  If you &#8216;man unzip&#8217; you&#8217;ll find a -o switch which: &#8220;-o  overwrite files WITHOUT prompting&#8221;</p>
<p>So my .sh script amounted to: </p>
<p>for f in *.zip;<br />
do unzip -o -d  &#8220;$f&#8221;;<br />
done</p>
<p>Hope this helps someone! Regards,<br />
Ax3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alp</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-52371</link>
		<dc:creator>Alp</dc:creator>
		<pubDate>Fri, 20 Jun 2008 15:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-52371</guid>
		<description>Sorry for the broken link, and thanks for pointing that out. It&#039;s fixed now.</description>
		<content:encoded><![CDATA[<p>Sorry for the broken link, and thanks for pointing that out. It&#8217;s fixed now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Cavestro</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-52349</link>
		<dc:creator>Davide Cavestro</dc:creator>
		<pubDate>Fri, 20 Jun 2008 08:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-52349</guid>
		<description>Maybe Alp wants something like this:

for f in *.zip;do unzip &quot;$f&quot; -d &quot;$f.inflated&quot;;done

It works on my Debian.

PS: I&#039;ve not seen Alp link cause it seems broken.</description>
		<content:encoded><![CDATA[<p>Maybe Alp wants something like this:</p>
<p>for f in *.zip;do unzip &#8220;$f&#8221; -d &#8220;$f.inflated&#8221;;done</p>
<p>It works on my Debian.</p>
<p>PS: I&#8217;ve not seen Alp link cause it seems broken.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alp</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-36073</link>
		<dc:creator>Alp</dc:creator>
		<pubDate>Sat, 02 Feb 2008 12:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-36073</guid>
		<description>Why didn&#039;t i find this 3 days ago? The only matter is that the files aren&#039;t extracted in subdirectories. I made a similar script myself. Take a look: http://ubuntu.alperortac.de/2008/01/30/automatically-extract-all-archives-in-current-directory-to-subfolders/</description>
		<content:encoded><![CDATA[<p>Why didn&#8217;t i find this 3 days ago? The only matter is that the files aren&#8217;t extracted in subdirectories. I made a similar script myself. Take a look: <a href="http://ubuntu.alperortac.de/2008/01/30/automatically-extract-all-archives-in-current-directory-to-subfolders/" rel="nofollow">http://ubuntu.alperortac.de/20.....ubfolders/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ranga</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-35112</link>
		<dc:creator>Ranga</dc:creator>
		<pubDate>Fri, 25 Jan 2008 10:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-35112</guid>
		<description>Try unzip \*.zip - It works in RED HAT flavours, I have not tried it on any other linux.</description>
		<content:encoded><![CDATA[<p>Try unzip \*.zip &#8211; It works in RED HAT flavours, I have not tried it on any other linux.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoberion</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-33573</link>
		<dc:creator>hoberion</dc:creator>
		<pubDate>Thu, 17 Jan 2008 11:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-33573</guid>
		<description>find -name *.zip -exec unzip {} \;</description>
		<content:encoded><![CDATA[<p>find -name *.zip -exec unzip {} \;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jose</title>
		<link>http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/comment-page-1/#comment-20966</link>
		<dc:creator>jose</dc:creator>
		<pubDate>Mon, 13 Aug 2007 23:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/ubuntu/unzip-or-unrar-many-files-at-once-in-linux/#comment-20966</guid>
		<description>Is there a decompressor that extracts almost all file types, if so which?</description>
		<content:encoded><![CDATA[<p>Is there a decompressor that extracts almost all file types, if so which?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
