Created
January 3, 2015 09:38
-
-
Save miguelfrias/2cd67b0262ad4ccb5fe1 to your computer and use it in GitHub Desktop.
Unix find commands
This file contains hidden or 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 files by name | |
find . -name YourName | |
# Find files by name with pattern | |
find . -name *YourName.* | |
# Find files by extension, and then search for a pattern | |
find . -name "*.php" -exec grep -l "qV" {} \; | |
# Find files by extension, and then search for a pattern with REGET | |
find . -name "*.php" -exec grep -l -E "^<.+\qV.+\>" {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment