Saturday, August 07, 2010

find a file and delete it

find <where-to-look> -name <name-of-the-file> | xargs /bin/rm -f
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 faisal said...

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