Saturday, August 07, 2010

find a file and delete it


Command:
find <where-to-look> -name <name-of-the-file> | xargs /bin/rm -f
Example:
I want to delete .svn folder from every directory
then the command would be
find <main-directory-name> -name .svn | xargs /bin/rm -rf

Source: Unix "find" command

1 comment:

mahmud said...

You are tagged in my post Things About Me . Go and Check it out now! :)