<?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: bash: /bin/rm: Argument list too long &#8211; How to fix it</title>
	<atom:link href="http://blog.hbcom.info/archives/4/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hbcom.info/archives/4?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bash-binrm-argument-list-too-long-how-to-fix-it</link>
	<description>Just another weblog OR maybe not</description>
	<lastBuildDate>Thu, 26 Jan 2012 05:52:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Scriptster</title>
		<link>http://blog.hbcom.info/archives/4/comment-page-1#comment-27000</link>
		<dc:creator>Scriptster</dc:creator>
		<pubDate>Mon, 03 Oct 2011 19:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hbcom.info/?p=4#comment-27000</guid>
		<description>For a less discriminate deletion of  EVERYTHING in the directory one can just use &#039;ls&#039; command with -rf keys to delete any directory that may come up in the listing:

ls &#124; xargs rm -rf 

BE VERY CAREFUL USING IT!!! Run in a wrong location this will destroy your system!

Also, in your post, it&#039;s best to remove the period (.) from the end - it should not be in the executed command:

find . -name &quot;*.tmp&quot;&#124; xargs /bin/rm   (no period at the end)

Cheers!</description>
		<content:encoded><![CDATA[<p>For a less discriminate deletion of  EVERYTHING in the directory one can just use &#8216;ls&#8217; command with -rf keys to delete any directory that may come up in the listing:</p>
<p>ls | xargs rm -rf </p>
<p>BE VERY CAREFUL USING IT!!! Run in a wrong location this will destroy your system!</p>
<p>Also, in your post, it&#8217;s best to remove the period (.) from the end &#8211; it should not be in the executed command:</p>
<p>find . -name &#8220;*.tmp&#8221;| xargs /bin/rm   (no period at the end)</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.hbcom.info/archives/4/comment-page-1#comment-23984</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Fri, 11 Feb 2011 14:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hbcom.info/?p=4#comment-23984</guid>
		<description>find . -name &#039;sess_0*&#039; &#124; xargs rm</description>
		<content:encoded><![CDATA[<p>find . -name &#8216;sess_0*&#8217; | xargs rm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://blog.hbcom.info/archives/4/comment-page-1#comment-22084</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Tue, 10 Aug 2010 09:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hbcom.info/?p=4#comment-22084</guid>
		<description>It works. Thanks</description>
		<content:encoded><![CDATA[<p>It works. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gopikrishna</title>
		<link>http://blog.hbcom.info/archives/4/comment-page-1#comment-17186</link>
		<dc:creator>Gopikrishna</dc:creator>
		<pubDate>Thu, 18 Feb 2010 09:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hbcom.info/?p=4#comment-17186</guid>
		<description>Thanks a lot. Helpful command.</description>
		<content:encoded><![CDATA[<p>Thanks a lot. Helpful command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swynndla</title>
		<link>http://blog.hbcom.info/archives/4/comment-page-1#comment-15240</link>
		<dc:creator>Swynndla</dc:creator>
		<pubDate>Wed, 16 Dec 2009 02:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hbcom.info/?p=4#comment-15240</guid>
		<description>If some of your filenames have spaces in them then the above wont work, so do this instead:
find -name &quot;*.tmp&quot; -print0 &#124; xargs -0 /bin/rm</description>
		<content:encoded><![CDATA[<p>If some of your filenames have spaces in them then the above wont work, so do this instead:<br />
find -name &#8220;*.tmp&#8221; -print0 | xargs -0 /bin/rm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nap</title>
		<link>http://blog.hbcom.info/archives/4/comment-page-1#comment-14330</link>
		<dc:creator>nap</dc:creator>
		<pubDate>Thu, 05 Nov 2009 13:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hbcom.info/?p=4#comment-14330</guid>
		<description>thank you very much, helpul command, helps me a lot!</description>
		<content:encoded><![CDATA[<p>thank you very much, helpul command, helps me a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.413 seconds -->

