[plug] Argument list too long

Russell Steicke r.steicke at bom.gov.au
Mon Jun 16 14:25:50 WST 2003


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


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


-- 
Russell Steicke

-- Fortune says:
Give him an evasive answer.



More information about the plug mailing list