Skip to content

Instantly share code, notes, and snippets.

@thisivan
Created May 14, 2009 05:04
Show Gist options
  • Save thisivan/111497 to your computer and use it in GitHub Desktop.
Save thisivan/111497 to your computer and use it in GitHub Desktop.
Some find bash command samples
# 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