<?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: Extract all Archive File Format With Just One Command in Linux</title>
	<atom:link href="http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/</link>
	<description>Trying to move every bit to cloud.</description>
	<lastBuildDate>Thu, 05 Apr 2012 15:31:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: spsneo</title>
		<link>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/comment-page-1/#comment-370</link>
		<dc:creator>spsneo</dc:creator>
		<pubDate>Wed, 28 Oct 2009 16:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=79#comment-370</guid>
		<description>@Marc

Thanks for your hint.
I will update the blog accordingly.</description>
		<content:encoded><![CDATA[<p>@Marc</p>
<p>Thanks for your hint.<br />
I will update the blog accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/comment-page-1/#comment-369</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Wed, 28 Oct 2009 12:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=79#comment-369</guid>
		<description>&gt;&gt; This function doesn’t work with files have space in its name

The solution is very simple: just put double-quotes around every appearance of &quot;$1&quot;, e.g.
  if [ -f &quot;$1&quot; ] ; then
    case &quot;$1&quot; in
       *.tar.bz2) tar xjf &quot;$1&quot; ;;

... and so on</description>
		<content:encoded><![CDATA[<p>&gt;&gt; This function doesn’t work with files have space in its name</p>
<p>The solution is very simple: just put double-quotes around every appearance of &#8220;$1&#8243;, e.g.<br />
  if [ -f "$1" ] ; then<br />
    case &#8220;$1&#8243; in<br />
       *.tar.bz2) tar xjf &#8220;$1&#8243; ;;</p>
<p>&#8230; and so on</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/comment-page-1/#comment-290</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Mon, 02 Feb 2009 12:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=79#comment-290</guid>
		<description>Also google for &quot;unball&quot; script. Provides similar functionality as long as you have the proper decompression program installed.</description>
		<content:encoded><![CDATA[<p>Also google for &#8220;unball&#8221; script. Provides similar functionality as long as you have the proper decompression program installed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hemanth</title>
		<link>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/comment-page-1/#comment-289</link>
		<dc:creator>hemanth</dc:creator>
		<pubDate>Sat, 31 Jan 2009 19:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=79#comment-289</guid>
		<description>I made the changes for the script to work for file names with spaces , i tired its working fine here , hope its bugs free.

#!/bin/bash
extract()
{
    SAVEIFS=$IFS
    IFS=$(echo -en &quot;\n\b&quot;)
    if [ -f $1 ] ; then
       case $1 in
       *.tar.bz2) tar xjf $1 ;;
       *.tar.gz) tar xzf $1 ;;
       *.bz2) bunzip2 $1 ;;
       *.rar) rar x $1 ;;
       *.gz) gunzip $1 ;;
       *.tar) tar xf $1 ;;
       *.tbz2) tar xjf $1 ;;
       *.tgz) tar xzf $1 ;;
       *.zip) unzip $1 ;;
       *.z) uncompress $1 ;;
      *) echo “‘$1? cannot be extracted via extract ()”;;
      esac
    else
     echo “‘$1? is not a valid file”
  fi
IFS=$SAVEIFS
}</description>
		<content:encoded><![CDATA[<p>I made the changes for the script to work for file names with spaces , i tired its working fine here , hope its bugs free.</p>
<p>#!/bin/bash<br />
extract()<br />
{<br />
    SAVEIFS=$IFS<br />
    IFS=$(echo -en &#8220;\n\b&#8221;)<br />
    if [ -f $1 ] ; then<br />
       case $1 in<br />
       *.tar.bz2) tar xjf $1 ;;<br />
       *.tar.gz) tar xzf $1 ;;<br />
       *.bz2) bunzip2 $1 ;;<br />
       *.rar) rar x $1 ;;<br />
       *.gz) gunzip $1 ;;<br />
       *.tar) tar xf $1 ;;<br />
       *.tbz2) tar xjf $1 ;;<br />
       *.tgz) tar xzf $1 ;;<br />
       *.zip) unzip $1 ;;<br />
       *.z) uncompress $1 ;;<br />
      *) echo “‘$1? cannot be extracted via extract ()”;;<br />
      esac<br />
    else<br />
     echo “‘$1? is not a valid file”<br />
  fi<br />
IFS=$SAVEIFS<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoserv</title>
		<link>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/comment-page-1/#comment-286</link>
		<dc:creator>Geoserv</dc:creator>
		<pubDate>Tue, 27 Jan 2009 23:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=79#comment-286</guid>
		<description>Wow, thanks for compiling and sharing.</description>
		<content:encoded><![CDATA[<p>Wow, thanks for compiling and sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: You are now listed on FAQPAL</title>
		<link>http://spsneo.com/blog/2009/01/28/extract-all-archive-file-forma-with-just-one-command-in-linux/comment-page-1/#comment-285</link>
		<dc:creator>You are now listed on FAQPAL</dc:creator>
		<pubDate>Tue, 27 Jan 2009 19:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://spsneo.com/blog/?p=79#comment-285</guid>
		<description>&lt;strong&gt;Extract all Archive File Format With Just One Command in Linux...&lt;/strong&gt;

Extracting archived files easily using linux....</description>
		<content:encoded><![CDATA[<p><strong>Extract all Archive File Format With Just One Command in Linux&#8230;</strong></p>
<p>Extracting archived files easily using linux&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

