<?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: How to Extract Tar Files to Specific or Different Directory in Linux	</title>
	<atom:link href="https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Sat, 16 Nov 2024 19:23:24 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: sathishkumar p		</title>
		<link>https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/comment-page-1/#comment-2242843</link>

		<dc:creator><![CDATA[sathishkumar p]]></dc:creator>
		<pubDate>Sat, 16 Nov 2024 19:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18010#comment-2242843</guid>

					<description><![CDATA[After going through the article, I have found the solution for extracting XML files to a common folder in Windows using a one-liner for files with names like &lt;code&gt;name.subname.tar.gz&lt;/code&gt;. This works with paths containing &lt;code&gt;.tar.gz&lt;/code&gt; files without a dot &lt;code&gt;(.)&lt;/code&gt; in the path:
&lt;code&gt;
mkdir commonxml &#038;&#038; for /f &quot;tokens=1,2,3,4 delims=.&quot; %i in (&#039;dir /b /s *.tar.gz&#039;) do @tar -zvf &quot;%i.%j.%k.%l&quot; -t &quot;*%~ni.xml&quot; &#038;&#038; @tar --strip-components 1 -C ./commonxml/ -zxvf &quot;%i.%j.%k.%l&quot; &quot;*/%~ni.xml&quot; &#124;&#124; @echo &quot;Error occurred: file not found, skipping...&quot;
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>After going through the article, I have found the solution for extracting XML files to a common folder in Windows using a one-liner for files with names like <code>name.subname.tar.gz</code>. This works with paths containing <code>.tar.gz</code> files without a dot <code>(.)</code> in the path:<br />
<code><br />
mkdir commonxml &amp;&amp; for /f "tokens=1,2,3,4 delims=." %i in ('dir /b /s *.tar.gz') do @tar -zvf "%i.%j.%k.%l" -t "*%~ni.xml" &amp;&amp; @tar --strip-components 1 -C ./commonxml/ -zxvf "%i.%j.%k.%l" "*/%~ni.xml" || @echo "Error occurred: file not found, skipping..."<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pascal		</title>
		<link>https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/comment-page-1/#comment-1476847</link>

		<dc:creator><![CDATA[Pascal]]></dc:creator>
		<pubDate>Fri, 16 Apr 2021 05:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18010#comment-1476847</guid>

					<description><![CDATA[Great article.

Just to note that &quot;Example 4: Extract Only Specific or Selected Files from Tar Archive&quot; is the wrong syntax. 

The order of the arguments has to be changed. The single files or directories to be extracted need to be last:

It shall read
&lt;pre&gt;
# tar -xvf etc.tar  -C /backup/tar_extracts/    etc/issue etc/fuse.conf etc/mysql/
&lt;/pre&gt;
reference: https://stackoverflow.com/a/9249779]]></description>
			<content:encoded><![CDATA[<p>Great article.</p>
<p>Just to note that &#8220;Example 4: Extract Only Specific or Selected Files from Tar Archive&#8221; is the wrong syntax. </p>
<p>The order of the arguments has to be changed. The single files or directories to be extracted need to be last:</p>
<p>It shall read</p>
<pre>
# tar -xvf etc.tar  -C /backup/tar_extracts/    etc/issue etc/fuse.conf etc/mysql/
</pre>
<p>reference: <a target="_blank" href="https://stackoverflow.com/a/9249779" rel="nofollow ugc">https://stackoverflow.com/a/9249779</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/comment-page-1/#comment-1100254</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Sun, 10 Feb 2019 08:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18010#comment-1100254</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/comment-page-1/#comment-1099715&quot;&gt;SHIVANI UMEACADEMY. COM&lt;/a&gt;.

@SHIVANI

I would like you to know that we are pleased to have read your beautiful and kind note of appreciation and encouragement.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/comment-page-1/#comment-1099715">SHIVANI UMEACADEMY. COM</a>.</p>
<p>@SHIVANI</p>
<p>I would like you to know that we are pleased to have read your beautiful and kind note of appreciation and encouragement.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: SHIVANI UMEACADEMY. COM		</title>
		<link>https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/comment-page-1/#comment-1099715</link>

		<dc:creator><![CDATA[SHIVANI UMEACADEMY. COM]]></dc:creator>
		<pubDate>Thu, 07 Feb 2019 10:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18010#comment-1099715</guid>

					<description><![CDATA[Your blog is very good, your blog has great information, your content is also very good, your blog has got a lot of help.]]></description>
			<content:encoded><![CDATA[<p>Your blog is very good, your blog has great information, your content is also very good, your blog has got a lot of help.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric		</title>
		<link>https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/comment-page-1/#comment-929980</link>

		<dc:creator><![CDATA[Eric]]></dc:creator>
		<pubDate>Wed, 01 Nov 2017 15:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18010#comment-929980</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/comment-page-1/#comment-733309&quot;&gt;Ravi Saive&lt;/a&gt;.

Oh... if I change the order it works.  If I move the &quot;--directory &quot; earlier in the args, it works.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/extract-tar-files-to-specific-or-different-directory-in-linux/comment-page-1/#comment-733309">Ravi Saive</a>.</p>
<p>Oh&#8230; if I change the order it works.  If I move the &#8220;&#8211;directory &#8221; earlier in the args, it works.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
