How do I use find to locate files and run a command on the found files? - Linux Views : 173
Tagged in : Linux
Send mail vote down 0 vote down 0

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 '{}' \;
By - Geethalakshmi, On - 2010-05-30




    Login to add Comments .