//View Tip #680
» Add a line to files using find and echo
» Random mass-rename
» Find and Grep
» Remove DS_Store files from shared folders
Similar Tips
» Find and replace on specific files» Add a line to files using find and echo
» Random mass-rename
» Find and Grep
» Remove DS_Store files from shared folders
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
Use this to find core files and remove them:
This works well as it finds only core files.
find . | egrep "\/core\.[0-9]+$" | xargs rm -f
This works well as it finds only core files.


find . -name "core.*" | xargs rm -f