On Tue, Aug 29, 2000 at 09:32:51AM +1100, Howard Lowndes wrote:
> I have managed to runout of inodes on a partition du to a buggy routine.
>
> I know what I want to delete, but when I do rm -f * in the problem
> directory it comes back with "Argument list too long"
>
> Can anyone think of a way around this one?
A number of other options have been given, but this one will work on
all occasions on all (?) platforms :
find /base/dir/name -type f -print | sed 's/ /\\ /g' | xargs rm -f
Yes, it's a little bit longer than a few other options which have been
said, but it will work regardless of the OS (within reason of course), or
the files in the directory.
Scott.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug