Removing thousands of files using rm

2004-07-06 Thread Steve Bertrand
I often have the need to remove hundreds or even thousands of files from a single directory (very often). Using rm, I usually get: pearl# rm -rvf * /bin/rm: Argument list too long. Is there any way to work around this instead of having to select a small bunch of files at a time to remove? The

Re: Removing thousands of files using rm

2004-07-06 Thread Lowell Gilbert
Steve Bertrand [EMAIL PROTECTED] writes: I often have the need to remove hundreds or even thousands of files from a single directory (very often). Using rm, I usually get: pearl# rm -rvf * /bin/rm: Argument list too long. Is there any way to work around this instead of having to select a

Re: Removing thousands of files using rm

2004-07-06 Thread Andrew L. Gould
On Tuesday 06 July 2004 09:15 am, Steve Bertrand wrote: I often have the need to remove hundreds or even thousands of files from a single directory (very often). Using rm, I usually get: pearl# rm -rvf * /bin/rm: Argument list too long. Is there any way to work around this instead of having

Re: Removing thousands of files using rm

2004-07-06 Thread Len Conrad
I often have the need to remove hundreds or even thousands of files from a single directory (very often). Using rm, I usually get: pearl# rm -rvf * /bin/rm: Argument list too long. man xargs Len ___ [EMAIL PROTECTED] mailing list

Re: Removing thousands of files using rm

2004-07-06 Thread Richard P. Williamson
At 15:15 06/07/2004. Steve Bertrand had this to say: I often have the need to remove hundreds or even thousands of files from a single directory (very often). Using rm, I usually get: pearl# rm -rvf * /bin/rm: Argument list too long. Is there any way to work around this instead of having to

Re: Removing thousands of files using rm

2004-07-06 Thread Steve Bertrand
I often have the need to remove hundreds or even thousands of files from a single directory (very often). Using rm, I usually get: pearl# rm -rvf * /bin/rm: Argument list too long. Is there any way to work around this instead of having to select a small bunch of files at a time to

Re: Removing thousands of files using rm

2004-07-06 Thread Jerry McAllister
I often have the need to remove hundreds or even thousands of files from a single directory (very often). Using rm, I usually get: pearl# rm -rvf * /bin/rm: Argument list too long. Is there any way to work around this instead of having to select a small bunch of files at a

Re: Removing thousands of files using rm

2004-07-06 Thread Bill Moran
Steve Bertrand [EMAIL PROTECTED] wrote: I often have the need to remove hundreds or even thousands of files from a single directory (very often). Using rm, I usually get: pearl# rm -rvf * /bin/rm: Argument list too long. Is there any way to work around this instead of having to select a

Re: Removing thousands of files using rm

2004-07-06 Thread Kirk Strauser
On Tuesday 2004-07-06 09:15 am, Steve Bertrand wrote: The directory I am trying to remove the files from is always hot, so deleting the directory is unfortunately not an option. (I don't think). If the directory is /var/tmp/foo, what about making foo a symlink to foo.0, then do something