Removing thousands of files using rm
iaccounts at ibctech.ca
Tue Jul 6 07:15:48 PDT 2004
I often have the need to remove hundreds or even thousands of files from a
single directory (very often). Using rm, I usually get:
pearl# rm -rvf *
/bin/rm: Argument list too long.
Is there any way to work around this instead of having to select a small
bunch of files at a time to remove?
The directory I am trying to remove the files from is always hot, so
deleting the directory is unfortunately not an option. (I don't think).
Any assistance is greatly appreciated.
More information about the freebsd-questions