[plug] deleting files

Brad Campbell brad at wasp.net.au
Tue Apr 27 18:50:45 WST 2004


raven at themaw.net wrote:
> 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.

I have a directory that contains ~7500 links and I regenerate it quite regularly. Thats how I do it 
also. Far easier.

Regards,
Brad.



More information about the plug mailing list