When you are trying to delete a very large number of files in a directory on Unix you may get
an error message similar to this: "Argument list too long" (I also had this problem on
Windows running cygwin). In this case you can use the following command, which will pass 100
files to rm at a time:
find /dir/* -print | xargs -n100 -i -t rm {}
|