Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another way to execute files found by find' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another way to execute files found by find
Authored by: Anonymous on Apr 05, '01 02:33:11AM

You can also use the -exec switch in find. For example, to turn off the write bit
on all your *.jpg files:

find . -name "*.jpg" -exec chmod -w {} \; (this should end in a forward-slash-semicolon)

Another example - search source code for your username

find . -name "*.c" -exec grep `whoami` {} \; (this should end in a forward-slash-semicolon)



[ Reply to This | # ]