2009/2/19

When using rm:/bin/rm: Argument list too long

If you want to delete more than usual number file.
For example: rm -f *.dat
/bin/rm: Argument list too long
then you can solve by this way:
find . -name 'dat.*' | xargs rm
find . -name '*.dat' -depth 1 -delete
ls *.dat | xargs rm -f