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.<
None of previous answers is good on Ubuntu. Try this:
find . ! -path "*/test/*" -type f -name "*.js" ! -name "*-min-*" ! -name "*console*"
I have found this here