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.<
If -prune doesn't work for you, this will:
-prune
find -name "*.js" -not -path "./directory/*"
Caveat: requires traversing all of the unwanted directories.