I\'m trying to run a find command for all JavaScript files, but how do I exclude a specific directory?
find
Here is the find code we\'re using.<
Use the -prune option. So, something like:
find . -type d -name proc -prune -o -name '*.js'
The '-type d -name proc -prune' only look for directories named proc to exclude. The '-o' is an 'OR' operator.