![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
There is something imminently satisfying about using find and xargs to accomplish tasks on files in the folder tree:
find . -name "*.orig" | xargs rm
I use it to delete certain leftover files from editors or version control systems, or to change the permissions on all of a certain kind of file. I also use it to recursively grep in certain instances:
find . -name "*.pl" | xargs grep -i "OpenID"
Here are a couple of articles for those interested in learning more about this awesome combo:
Advanced techniques for using the find command
Unix Xargs Piping Toolkit Utility
find . -name "*.orig" | xargs rm
I use it to delete certain leftover files from editors or version control systems, or to change the permissions on all of a certain kind of file. I also use it to recursively grep in certain instances:
find . -name "*.pl" | xargs grep -i "OpenID"
Here are a couple of articles for those interested in learning more about this awesome combo:
Advanced techniques for using the find command
Unix Xargs Piping Toolkit Utility