[plug] deleting files

raven at themaw.net raven at themaw.net
Tue Apr 27 18:43:38 WST 2004


On Tue, 27 Apr 2004, Leon Brooks wrote:

> On Mon, 26 Apr 2004 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?
> 
> Delete and recreate the directory:
> 
>     cd ..
>     rm -rf nameofdirectory
>     mkdir nameofdirectory

Of course that's better.

Always bad getting caught up in how "to be smart at it".

Ian




More information about the plug mailing list