|Main Archive Page > Month Archives > clamav-users archives|
Stephen Gran wrote:
> On Fri, Aug 10, 2007 at 05:16:38PM -0400, Marshall Dudley said:
>> /tmp/clamav-ec6d3e4e4e253eaf directory and filled it up. To make >> matters worse, I had a difficult time deleting them to get the system >> back up because when I tried to do a "rm *" it reported that the file >> list was too long, so I had to delete them a few at a time.
> On Fri, Aug 10, 2007 at 10:19:27PM -0700, Dennis Peterson said:
>> Try: >> rm *[a-m];rm *[n-z];rm *[0-9]
> On Sat, Aug 11, 2007 at 11:09:20AM +0100, G.W. Haywood said:
>> man xargs
> On Mon, Aug 13, 2007 at 08:10:08AM -0700, Ken Sandberg said:
>> Try "ls | xargs rm"
> On Mon, Aug 13, 2007 at 11:29:55AM -0400, David F. Skoll said:
>> find . -type f -print0 | xargs -0 rm
> How many unix admins does it take to not notice that rm has a recursive
There has not been a suggestion by anyone that it was desired to remove any subdirectories and their contents, nor the parent directory of the files destined for removal. My suggested method and Mr. Haywood's method do only what was originally attempted. And it's worth repeating that -print0 is not available in all find versions.
This topic was beat to death a year or so ago. Some things don't get better with age.