Created
May 14, 2009 05:04
-
-
Save thisivan/111497 to your computer and use it in GitHub Desktop.
Some find bash command samples
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
# Find text in files | |
find | xargs grep 'text to find' -l | |
# Find and exec command | |
find -name '*.bak' -exec rm {} \; | |
# Find only dirs | |
find -type d | |
# Find only files | |
find -type f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment