<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Linux or Unix find and remove files with one find command on fly</title>
	<atom:link href="http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/</link>
	<description>Every answer asks a more beautiful question.</description>
	<lastBuildDate>Thu, 18 Mar 2010 20:15:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lupht</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-44997</link>
		<dc:creator>lupht</dc:creator>
		<pubDate>Thu, 03 Dec 2009 07:51:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-44997</guid>
		<description>Kiran:

Try the -ignore_readdir_race option</description>
		<content:encoded><![CDATA[<p>Kiran:</p>
<p>Try the -ignore_readdir_race option</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-44749</link>
		<dc:creator>Roshan</dc:creator>
		<pubDate>Wed, 18 Nov 2009 06:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-44749</guid>
		<description>How to override after find command?
Note :i know find command but dont know how to combine these operations.
cat &quot;I&#039;m repled content&quot; &gt; test.zip .
ex:
1&gt; i have to find files with name &quot;*test*.*&quot;  and replace the content of the file with &quot;I&#039;m replaced content&quot;.
2&gt; find the file with size more than 10mb and replace the content of the file with &quot;I&#039;m replaced content&quot;.</description>
		<content:encoded><![CDATA[<p>How to override after find command?<br />
Note :i know find command but dont know how to combine these operations.<br />
cat &#8220;I&#8217;m repled content&#8221; &gt; test.zip .<br />
ex:<br />
1&gt; i have to find files with name &#8220;*test*.*&#8221;  and replace the content of the file with &#8220;I&#8217;m replaced content&#8221;.<br />
2&gt; find the file with size more than 10mb and replace the content of the file with &#8220;I&#8217;m replaced content&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sailor Enlil</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-44719</link>
		<dc:creator>Sailor Enlil</dc:creator>
		<pubDate>Tue, 17 Nov 2009 01:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-44719</guid>
		<description>Does find&#039;s -delete option support or have something similar to rm&#039;s -f flag? (i.e. force delete a file/directory even if the write permission is not set)? I need to delete files that may not be write enabled (eg r-- or r-x when viewed using ls -l).</description>
		<content:encoded><![CDATA[<p>Does find&#8217;s -delete option support or have something similar to rm&#8217;s -f flag? (i.e. force delete a file/directory even if the write permission is not set)? I need to delete files that may not be write enabled (eg r&#8211; or r-x when viewed using ls -l).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kiran</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-44339</link>
		<dc:creator>Kiran</dc:creator>
		<pubDate>Tue, 27 Oct 2009 05:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-44339</guid>
		<description>Hi, 

I am trying to delete files and folders using the below command 

find /opt/server/Outward/logs/  -daystart \( -type d ! \) -mtime +264 -exec rm -rf {} \;
I get the below error. 
find: /opt/server/Outward/logs/2009-02-04: No such file or directory

The logs folder contains folders and sub-folders. After I execute the command i get the error message as above. What could be the possible reason and the solution.

Thanks
Kiran</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I am trying to delete files and folders using the below command </p>
<p>find /opt/server/Outward/logs/  -daystart \( -type d ! \) -mtime +264 -exec rm -rf {} \;<br />
I get the below error.<br />
find: /opt/server/Outward/logs/2009-02-04: No such file or directory</p>
<p>The logs folder contains folders and sub-folders. After I execute the command i get the error message as above. What could be the possible reason and the solution.</p>
<p>Thanks<br />
Kiran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: durga</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-44256</link>
		<dc:creator>durga</dc:creator>
		<pubDate>Thu, 22 Oct 2009 23:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-44256</guid>
		<description>hey, thanks!</description>
		<content:encoded><![CDATA[<p>hey, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-44104</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 15 Oct 2009 08:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-44104</guid>
		<description>Use -delete flag with find... works much faster than -exec rm</description>
		<content:encoded><![CDATA[<p>Use -delete flag with find&#8230; works much faster than -exec rm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hank</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-43655</link>
		<dc:creator>Hank</dc:creator>
		<pubDate>Fri, 11 Sep 2009 16:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-43655</guid>
		<description>This should do it:

for FILE in `find . -name &#039;*\:*&#039;`; do NEW=`echo $FILE &#124; sed -e &#039;s/:/_/&#039;`; mv $FILE $NEW; done</description>
		<content:encoded><![CDATA[<p>This should do it:</p>
<p>for FILE in `find . -name &#8216;*\:*&#8217;`; do NEW=`echo $FILE | sed -e &#8217;s/:/_/&#8217;`; mv $FILE $NEW; done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimmyNY</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-42804</link>
		<dc:creator>JimmyNY</dc:creator>
		<pubDate>Thu, 30 Jul 2009 06:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-42804</guid>
		<description>Nobody has ever asked this question online it seems... 

Problem: Stupid MAC (which I dont have anymore named files with these characters:
 &quot;:&quot;
 &quot;?&quot;
etc.. in the file names.. I could not find any file renamer that would rename these files in Windows/DOS.. 

So I tried FENDORA linux and I can rename the manually one by one but i have hundreds...

HELP!!!!

No RENAME or mv command works.. I trired everything i can find online..

I tried specifing the &quot;:&quot; like this &quot;\:&quot;   &quot;\x3a&quot; etc..  and nothing.

does anyone know how to strip these retardted OS-illegal characters out of the names.. in one shot.?

I know the ren command in DOS.. but I have no clue it seems in Linux.
and no i don&#039;t have a mac or access to one..  

Thanks ahead of time, for your help.</description>
		<content:encoded><![CDATA[<p>Nobody has ever asked this question online it seems&#8230; </p>
<p>Problem: Stupid MAC (which I dont have anymore named files with these characters:<br />
 &#8220;:&#8221;<br />
 &#8220;?&#8221;<br />
etc.. in the file names.. I could not find any file renamer that would rename these files in Windows/DOS.. </p>
<p>So I tried FENDORA linux and I can rename the manually one by one but i have hundreds&#8230;</p>
<p>HELP!!!!</p>
<p>No RENAME or mv command works.. I trired everything i can find online..</p>
<p>I tried specifing the &#8220;:&#8221; like this &#8220;\:&#8221;   &#8220;\x3a&#8221; etc..  and nothing.</p>
<p>does anyone know how to strip these retardted OS-illegal characters out of the names.. in one shot.?</p>
<p>I know the ren command in DOS.. but I have no clue it seems in Linux.<br />
and no i don&#8217;t have a mac or access to one..  </p>
<p>Thanks ahead of time, for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CorkyMoo</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-42516</link>
		<dc:creator>CorkyMoo</dc:creator>
		<pubDate>Tue, 14 Jul 2009 01:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-42516</guid>
		<description>Is it not &#039; &#124; exec &#039;  and not &#039; -exec &#039; ?   Either way it does not work.</description>
		<content:encoded><![CDATA[<p>Is it not &#8216; | exec &#8216;  and not &#8216; -exec &#8216; ?   Either way it does not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/comment-page-1/#comment-40887</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Tue, 24 Mar 2009 16:27:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-how-to-find-and-remove-files.php#comment-40887</guid>
		<description>I&#039;m trying to remove files that have a certain misc dates
Would like to do a wild card for certain parts of the file name.
Example - 03230800203805V274803.810

Would ****08***********.810 work?  

Want to delete the files containing in the postions 5 and 6 for 08.  

Thanks,
Nicole</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to remove files that have a certain misc dates<br />
Would like to do a wild card for certain parts of the file name.<br />
Example &#8211; 03230800203805V274803.810</p>
<p>Would ****08***********.810 work?  </p>
<p>Want to delete the files containing in the postions 5 and 6 for 08.  </p>
<p>Thanks,<br />
Nicole</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.102 seconds -->
<!-- Cached page served by WP-Cache -->
