Last active
June 20, 2016 01:03
-
-
Save rgbink/dbe19ce2bf326b302d5f to your computer and use it in GitHub Desktop.
Find and Delete files in Mac OS X Terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Substitute your search term for YOURSEARCH | |
find ./ -name 'YOURSEARCH' -exec rm {} \; | |
# Change the command you apply to the found files by adjusting the call after the -exec | |
# For example, to list the found files… | |
find ./ -name '._*' -exec ls -al {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment