Created
August 22, 2019 08:35
-
-
Save look4regev/bcdab4f2dcf72edca7f9097c5661a1f6 to your computer and use it in GitHub Desktop.
Bash find files function which excludes ignored directories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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