Monday, July 12, 2010

Bash - To find and delete files & dirctories recursively

To search and delete files & directories recursively on the fly

find <path> -type <f> -name "<regex to find>" -exec rm -rf {} \;

type f for file and d for directory

No comments:

Post a Comment