<?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: /bin/rm annoying limitation: Argument list too long</title> <atom:link href="http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/feed/" rel="self" type="application/rss+xml" /><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/</link> <description>The Journal Of A Linux Sysadmin</description> <lastBuildDate>Wed, 08 Feb 2012 13:08:17 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Edevlet</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-2/#comment-192900</link> <dc:creator>Edevlet</dc:creator> <pubDate>Sat, 14 May 2011 10:52:29 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-192900</guid> <description>Thanks you will :P
t?kler admin</description> <content:encoded><![CDATA[<p>Thanks you will <img
src='http://www.ducea.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br
/> t?kler admin</p> ]]></content:encoded> </item> <item><title>By: ????????? ?????????</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-2/#comment-192857</link> <dc:creator>????????? ?????????</dc:creator> <pubDate>Tue, 10 May 2011 10:30:25 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-192857</guid> <description>?? ??????? ls -l /usr/local/vpopmail/domains/oldcomp.ru/abuse/Maildir/cur/ &#124; awk &#039;{print &quot;rm /usr/local/vpopmail/domains/oldcomp.ru/abuse/Maildir/cur/&quot;$9}&#039; &#124; /bin/sh??????? ??? !!!</description> <content:encoded><![CDATA[<p>?? ??????? ls -l /usr/local/vpopmail/domains/oldcomp.ru/abuse/Maildir/cur/ | awk &#8216;{print &#8220;rm /usr/local/vpopmail/domains/oldcomp.ru/abuse/Maildir/cur/&#8221;$9}&#8217; | /bin/sh</p><p>??????? ??? !!!</p> ]]></content:encoded> </item> <item><title>By: DRH</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-2/#comment-192304</link> <dc:creator>DRH</dc:creator> <pubDate>Thu, 17 Feb 2011 09:56:47 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-192304</guid> <description>Thanks for this tip, I&#039;m embarrassed to say I found 153,000 files I needed to delete spam collated over years.The &quot;find&quot; commands didn&#039;t work for me on OSX, they would finish with no error&#039;s reported, but the files were still there!?In the end, I used Preben&#039;s &quot;for i in `ls `; do rm -v $i; done;&quot;.
Its the only one I could see working and actually removed the files.
It took 21 mins to remove the first 50,000 files :-)Thanks to everyone for their tips.</description> <content:encoded><![CDATA[<p>Thanks for this tip, I&#8217;m embarrassed to say I found 153,000 files I needed to delete spam collated over years.</p><p>The &#8220;find&#8221; commands didn&#8217;t work for me on OSX, they would finish with no error&#8217;s reported, but the files were still there!?</p><p>In the end, I used Preben&#8217;s &#8220;for i in `ls `; do rm -v $i; done;&#8221;.<br
/> Its the only one I could see working and actually removed the files.<br
/> It took 21 mins to remove the first 50,000 files <img
src='http://www.ducea.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p><p>Thanks to everyone for their tips.</p> ]]></content:encoded> </item> <item><title>By: guru</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-2/#comment-192050</link> <dc:creator>guru</dc:creator> <pubDate>Fri, 21 Jan 2011 23:00:25 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-192050</guid> <description>root@web [/home/anonos/mail/new]# ls -1 &#124; wc -l                                 517546</description> <content:encoded><![CDATA[<p>root@web [/home/anonos/mail/new]# ls -1 | wc -l                                 517546</p> ]]></content:encoded> </item> <item><title>By: raxio</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-2/#comment-183465</link> <dc:creator>raxio</dc:creator> <pubDate>Wed, 10 Nov 2010 10:03:07 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-183465</guid> <description>I&#039;ve found that learning to use loops in bash is extremely useful for lots of different things and it&#039;s quick to do once you&#039;ve got it in your mind:for i in `ls` ; do rm -f $i ; done</description> <content:encoded><![CDATA[<p>I&#8217;ve found that learning to use loops in bash is extremely useful for lots of different things and it&#8217;s quick to do once you&#8217;ve got it in your mind:</p><p>for i in `ls` ; do rm -f $i ; done</p> ]]></content:encoded> </item> <item><title>By: werkun</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-2/#comment-181896</link> <dc:creator>werkun</dc:creator> <pubDate>Thu, 10 Jun 2010 22:55:45 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-181896</guid> <description>Very useful when you wanna remove 170000 files, thanks a lot!</description> <content:encoded><![CDATA[<p>Very useful when you wanna remove 170000 files, thanks a lot!</p> ]]></content:encoded> </item> <item><title>By: ???</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-2/#comment-180979</link> <dc:creator>???</dc:creator> <pubDate>Fri, 04 Sep 2009 13:49:49 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-180979</guid> <description>thanx for sharing to the netiziens</description> <content:encoded><![CDATA[<p>thanx for sharing to the netiziens</p> ]]></content:encoded> </item> <item><title>By: loooloow</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-2/#comment-179996</link> <dc:creator>loooloow</dc:creator> <pubDate>Thu, 02 Apr 2009 16:08:31 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-179996</guid> <description>thanks to much really nice .... but i need your help in this question
The goal of this assignment is to write a shell script to replace the rm command andprovide undelete capability similar to MS-DOS.Write a shell program to duplicate the UNIX rm command with the following features:1.It will have a switch -i that will act in the same manner as in the rm command.2.Instead of deleting the files, it will move them to a wastebasket directory. If thefile already exists in the wastebasket directory, then the existing file (in thewastebasket) will have the version number zero appended to it and the newlydeleted file will have version number one appended to it. If the version numbersetup is already in use for that file then the newest one will simply have the nextversion number in the series appended to it. It&#039;s your choice as to what system touse for this. Just be sure that it is a unique system and will not be part of anynormal file naming convention you might use.3.It will have a switch -c that will clear the entire wastebasket after asking forconfirmation. The -i and -c switches may be combined to ask for confirmation onindividual files.Don&#039;t forget that wildcards and multiple files are allowed on the command line. Theswitches when combined may be in any order but must be before any filenames. Yourprogram must also catch any operator errors.
i hope to answer me in my email
thanks ...</description> <content:encoded><![CDATA[<p>thanks to much really nice &#8230;. but i need your help in this question<br
/> The goal of this assignment is to write a shell script to replace the rm command andprovide undelete capability similar to MS-DOS.Write a shell program to duplicate the UNIX rm command with the following features:1.It will have a switch -i that will act in the same manner as in the rm command.2.Instead of deleting the files, it will move them to a wastebasket directory. If thefile already exists in the wastebasket directory, then the existing file (in thewastebasket) will have the version number zero appended to it and the newlydeleted file will have version number one appended to it. If the version numbersetup is already in use for that file then the newest one will simply have the nextversion number in the series appended to it. It&#8217;s your choice as to what system touse for this. Just be sure that it is a unique system and will not be part of anynormal file naming convention you might use.3.It will have a switch -c that will clear the entire wastebasket after asking forconfirmation. The -i and -c switches may be combined to ask for confirmation onindividual files.Don&#8217;t forget that wildcards and multiple files are allowed on the command line. Theswitches when combined may be in any order but must be before any filenames. Yourprogram must also catch any operator errors.<br
/> i hope to answer me in my email<br
/> thanks &#8230;</p> ]]></content:encoded> </item> <item><title>By: Eligio</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-2/#comment-179666</link> <dc:creator>Eligio</dc:creator> <pubDate>Sun, 08 Feb 2009 12:08:10 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-179666</guid> <description>command works on my 7k+ swf files, thanks for the solution. :D</description> <content:encoded><![CDATA[<p>command works on my 7k+ swf files, thanks for the solution. <img
src='http://www.ducea.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Burg</title><link>http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/comment-page-1/#comment-178737</link> <dc:creator>Burg</dc:creator> <pubDate>Fri, 24 Oct 2008 13:14:34 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/05/24/binrm-annoying-limitation-argument-list-too-long/#comment-178737</guid> <description>cd /var/spool/mqueue/
find . -name &#039;dfm3*&#039; &#124; xargs rm</description> <content:encoded><![CDATA[<p>cd /var/spool/mqueue/<br
/> find . -name &#8216;dfm3*&#8217; | xargs rm</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.ducea.com @ 2012-02-08 19:28:28 by W3 Total Cache -->
