Skip to content

Instantly share code, notes, and snippets.

@rvillablanca
Last active April 24, 2019 12:14
Show Gist options
  • Save rvillablanca/f7133f9baf24c2b680d4d24a649b31f9 to your computer and use it in GitHub Desktop.
Save rvillablanca/f7133f9baf24c2b680d4d24a649b31f9 to your computer and use it in GitHub Desktop.
Find ignoring folder
find . -path ./misc -prune -o -name '*.txt' -print
find . -type d \( -path dir1 -o -path dir2 -o -path dir3 \) -prune -o -print
find . -path ./database -prune -o -path ./docker-projects -prune -o -path "*/target/*" -prune -o -path "*/src/main/*" -prune -o -type f -name log4j.xml -print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment