How do I use find to locate files and run a command on the found files?

by Geethalakshmi 2010-05-30 03:29:02

How do I use find to locate files and run a command on the found files?


Use the the -exec '{}' \; parameters:

find ./ -name "*.$$$" -exec chmod +w '{}' \;

Tagged in:

815
like
0
dislike
0
mail
flag

You must LOGIN to add comments