Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created August 7, 2014 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niraj-shah/a776aa1e896617672bb9 to your computer and use it in GitHub Desktop.
Save niraj-shah/a776aa1e896617672bb9 to your computer and use it in GitHub Desktop.
Find PHP and .DS_Store files in current directory
# Find PHP files in current directory
find . -name *.php -exec echo {} \;
# Find annoying .DS_Store files in current directory (Mac issue)
find . -name .DS_Store -exec echo {} \;
# Find log files in current directory (ending in.log)
find . -name *.log -exec echo {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment