[plug] Argument list too long

Brad Campbell brad at seme.com.au
Mon Jun 16 14:28:15 WST 2003


Russell Steicke wrote:
> On Mon, Jun 16, 2003 at 02:13:23PM +0800, Brad Campbell wrote:
> 
>>G'day all
>>
>>I have a dir that has lots of files in it
>>(10658 to be exact)
>>
>>rm * gives me an Argument list too long error.
>>I can simply remove the dir, but is there another way ?
> 
> 
>   $ find . -type f -maxdepth 1 -print0 | xargs -0 rm -f

Thanks guys.
I knew I had to use xargs somehow but I'm in brainfade mode and the man 
page was not making any sense.

Cheers for the enlightenment :p)

-- 
Brad....
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X      AGAINST HTML MAIL
  / \



More information about the plug mailing list