How to do recursive file delete using specifier (*.tmp) from nested directories?
I basically want to delete file matching a wildcard from a directory and all its subdirectories.
Examples:
mydelete *.tmp mydir/
So all the files ending with *.tmp in mydir/ and its subdirs would be deleted. How can I do this?
EDIT:
n/m, found the solution:
rm `find /home/user/path -name '*.tmp'`
Last edited by Arodef; 02-15-2005 at 02:33 PM.
|