Skip to content

Instantly share code, notes, and snippets.

@miguelfrias
Created January 3, 2015 09:38
Show Gist options
  • Save miguelfrias/2cd67b0262ad4ccb5fe1 to your computer and use it in GitHub Desktop.
Save miguelfrias/2cd67b0262ad4ccb5fe1 to your computer and use it in GitHub Desktop.
Unix find commands
# 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