Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.