Skip to content

Instantly share code, notes, and snippets.

@look4regev
Created August 22, 2019 08:35
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 look4regev/bcdab4f2dcf72edca7f9097c5661a1f6 to your computer and use it in GitHub Desktop.
Save look4regev/bcdab4f2dcf72edca7f9097c5661a1f6 to your computer and use it in GitHub Desktop.
Bash find files function which excludes ignored directories
#!/bin/bash
qfind () {
find . -not -path "*/node_modules*" -not -path "*/.git/*" -not -path "*/build/*" -not -path "*/*.egg-info*" -not -path "*/.pytest_cache*" -not -path "*/.idea*" -not -path "*/__pycache__*" -not -path "*/.vscode*/" -not -path "*/app/libs/*" -name $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment