If you run Linux and have been working with the filesystem(s) for any length of time, you have used and abused rm. However, when the number of files concerned is very large or there are unescaped characters in your filenames, rm can misbehave. The following code will take care of all your worries. The exec command always makes me stand back and wonder at the power of the Linux shell. find . -name ‘*.*’ -exec rm {} \; From: http://howtos.linux.com/guides/abs-guide/moreadv.shtml Also, Veen overhears an rm conversation [EDIT] Be very careful using find to remove files.
[Continue Reading...]
