Using find (specifically the one on windows that comes with git) to search files. I specifically want to check my entire USB drive but not in folders that start with a dot (specifically .git and .vs) and not in a folder called photos (many many vacation and bday pics, my file isn't in there).
How do I ignore those directories?
find . \( ! -name ".nuget" \) -print
yields results from my.nuget
directory howeverfind . -not -path "*.nuget*"
appears to work. I can't tell if find is searching the nuget directory or not. On windows it appears to do the same thing however using resource manager I see find is searching through the directory every tho it's not matching anything. There's a lot of files so its running slow which is what I'm trying to prevent. Maybe I should write a C# app. I was hoping this would be simple – Apr 17 '17 at 00:18