[plug] deleting files

William Kenworthy billk at iinet.net.au
Mon Apr 26 21:47:25 WST 2004


"find <path_to_directory> -exec rm -v {} \;"

also, "xargs" is designed for this but "find" works nicely so I have
never bothered with it.

BillK


On Mon, 2004-04-26 at 20:29, Jon Miller wrote:
> I have in one directory over 1000 files that needs to be deleted.  Of course when I issue rm -rf * I get  message stating the argument list was too long.  Is there a way to issue a single command to delete the entire content of the directory?
> 
> Thanks
> 
> Jon L. Miller, MCNE, CNS, ASE
> Director/Sr Systems Consultant
> MMT Networks Pty Ltd
> http://www.mmtnetworks.com.au
> 
> "I don't know the key to success, but the key to failure
>  is trying to please everybody." -Bill Cosby
> 
> 
> 
> 
> _______________________________________________
> PLUG discussion list: plug at plug.linux.org.au
> http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
> 




More information about the plug mailing list