multiple -execs using find command
I'm starting to master the learning curve on Linux, it's a good thing. But there are two things that I want to learn:
1. with find you can do this:
find -name|criteria something -exec do_something;
but how would you do multiple operations in that same search pass? Specifically I want to execute chown, chgrp, chmod and perhaps touch.
And, it's important that I do each of the operations on the file while in the search path because the changes made will involve the criteria I'm searching by; they wouldn't be found again on a second find.
2. Any good tutorials on creating a batch file? Once things work I don't want to have to retype them :-)
Thank you,
Sam Fullman
Compass Point Media
Ok, but my question was..
I appreciate the resources and will look. But the original question was, can you run multiple -exec commands on a find command, and if so how.
Thanks again,
Sam Fullman