Sunday, July 27, 2008

Remove too much files...

Sometimes (in Linux) if you try to delete all files in a directory (that contains a lot files) you get an:

> rm -rf * 
Argument list too long

Via DZone I found this tip to avoid this problem. Basically it used find command to get the list of interested files and remove it one by one.

No comments: