Thursday, September 25, 2008

Delete all files in a directory

[prod-oranode-50:pd01bie1]$ rm *
-bash: /usr/bin/rm: The parameter or environment lists are too long.

for FILE in $(ls); do rm $FILE; done