Archive
하위 디렉토리 내의 특정 이름을 가진 폴더나 파일을 한 꺼번에 지우기
epicdev
2012. 9. 5. 06:15
출처: http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/
Linux or UNIX - Find and remove file syntax
To remove multiple files such as *.jpg or *.sh with one command find, use
find . -name "FILE-TO-FIND"-exec rm -rf {} \;
OR
find . -type f -name "FILE-TO-FIND" -exec rm -f {} \;
The only difference between above two syntax is that first command can remove directories as well where second command only removes files.