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.<
This is the only one that worked for me.
find / -name MyFile ! -path '*/Directory/*'
Searching for "MyFile" excluding "Directory". Give emphasis to the stars * .