<?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: LFCS #3: How to Archive Files, Set File Permissions and Finding Files in Linux	</title>
	<atom:link href="https://www.tecmint.com/compress-files-and-finding-files-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/compress-files-and-finding-files-in-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Sat, 27 Sep 2025 06:03:56 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-2146025</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 11 Mar 2024 04:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9226#comment-2146025</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-2144999&quot;&gt;nthapa&lt;/a&gt;.

@Nthapa,

Thank you for your interest! You&#039;re currently reading Part 3 of our series. If you&#039;re looking for previous parts, you can find them in the table above.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-2144999">nthapa</a>.</p>
<p>@Nthapa,</p>
<p>Thank you for your interest! You&#8217;re currently reading Part 3 of our series. If you&#8217;re looking for previous parts, you can find them in the table above.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: nthapa		</title>
		<link>https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-2144999</link>

		<dc:creator><![CDATA[nthapa]]></dc:creator>
		<pubDate>Fri, 08 Mar 2024 10:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9226#comment-2144999</guid>

					<description><![CDATA[Where is the link of Part 3 above table?]]></description>
			<content:encoded><![CDATA[<p>Where is the link of Part 3 above table?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chiadi		</title>
		<link>https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-1100620</link>

		<dc:creator><![CDATA[Chiadi]]></dc:creator>
		<pubDate>Tue, 12 Feb 2019 13:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9226#comment-1100620</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-1100580&quot;&gt;Ravi Saive&lt;/a&gt;.

@Ravi,

Thanks a lot for your time and further explanation. 

I understood him, the issue arise because I copied, pasted and ran the script but it gave me some errors.

On examination, I found out the file was not pasted in its original format. I formatted it and it was fine. 

Thanks once more for your time; ravi means thrilled in French and I am thrilled.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-1100580">Ravi Saive</a>.</p>
<p>@Ravi,</p>
<p>Thanks a lot for your time and further explanation. </p>
<p>I understood him, the issue arise because I copied, pasted and ran the script but it gave me some errors.</p>
<p>On examination, I found out the file was not pasted in its original format. I formatted it and it was fine. </p>
<p>Thanks once more for your time; ravi means thrilled in French and I am thrilled.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-1100580</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Tue, 12 Feb 2019 06:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9226#comment-1100580</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-1100515&quot;&gt;CHIADI&lt;/a&gt;.

@Chiadi,

Gabriel already provided explanation of that command, see:
&lt;pre&gt;
&quot;#!/bin/bash
# Pass the directory to backup as first argument.
DIR=$1
# Create the tarball and compress it. Exclude files with the MPEG string in its file type.
# -If the file type contains the string mpeg, $? (the exit status of the most recently executed command) expands to 0, 
and the filename is redirected to the exclude option. Otherwise, it expands to 1.
# -If $? equals 0, add the file to the list of files to be backed up.
&lt;code&gt;tar X &lt;(for i in $DIR/*; do file $i &#124; grep -i mpeg; if [ $? -eq 0 ]; then echo $i; fi;done) -cjf backupfile.tar.bz2 $DIR/*&lt;/code&gt;
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-1100515">CHIADI</a>.</p>
<p>@Chiadi,</p>
<p>Gabriel already provided explanation of that command, see:</p>
<pre>
"#!/bin/bash
# Pass the directory to backup as first argument.
DIR=$1
# Create the tarball and compress it. Exclude files with the MPEG string in its file type.
# -If the file type contains the string mpeg, $? (the exit status of the most recently executed command) expands to 0, 
and the filename is redirected to the exclude option. Otherwise, it expands to 1.
# -If $? equals 0, add the file to the list of files to be backed up.
<code>tar X <(for i in $DIR/*; do file $i | grep -i mpeg; if [ $? -eq 0 ]; then echo $i; fi;done) -cjf backupfile.tar.bz2 $DIR/*</code>
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: CHIADI		</title>
		<link>https://www.tecmint.com/compress-files-and-finding-files-in-linux/comment-page-1/#comment-1100515</link>

		<dc:creator><![CDATA[CHIADI]]></dc:creator>
		<pubDate>Mon, 11 Feb 2019 19:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9226#comment-1100515</guid>

					<description><![CDATA[Hi Gabriel,

Thanks for the nice write-ups. I am new to Linux and scripting, could you help explain this your line of code for a newbie:

&lt;code&gt;tar X &#060;(for i in $DIR/*; do file $i &#124; grep -i mpeg; if [ $? -eq 0 ]; then echo $i; fi;done) -cjf backupfile.tar.bz2 $DIR/*&lt;/code&gt;
Or could you re-write it in an expanded form?

Thanks in anticipation.
Chiadi]]></description>
			<content:encoded><![CDATA[<p>Hi Gabriel,</p>
<p>Thanks for the nice write-ups. I am new to Linux and scripting, could you help explain this your line of code for a newbie:</p>
<p><code>tar X &lt;(for i in $DIR/*; do file $i | grep -i mpeg; if [ $? -eq 0 ]; then echo $i; fi;done) -cjf backupfile.tar.bz2 $DIR/*</code><br />
Or could you re-write it in an expanded form?</p>
<p>Thanks in anticipation.<br />
Chiadi</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
