Bob Yoplait Asked: 2013-01-18 12:55:00 +0800 CST2013-01-18 12:55:00 +0800 CST 2013-01-18 12:55:00 +0800 CST How do I remove files as a result of the find command? 772 I want to rm all the files that I get when I run find search-3S-beta |grep "\.log\." What would be the command? bash 1 Answers Voted Best Answer Dennis Kaarsemaker 2013-01-18T12:58:22+08:002013-01-18T12:58:22+08:00 Find can do the deletion for you using the -delete option. Combining the rest of your command into a single find line, this will become: find search-3S-beta -name '*.log.*' -delete
Find can do the deletion for you using the
-delete
option. Combining the rest of your command into a singlefind
line, this will become: