I am trying to pipe find into grep with the negative match option but I don't get the desired results. I am using the Ubuntu subshell for Windows and running the command:
find / -name CCP.cf | grep -v '*denied'
This produces the output (a lot omitted for brevity):
find: ‘/mnt/c/Config.Msi’: Permission denied
find: ‘/mnt/c/Intel/IntelOptaneData’: Permission denied
find: ‘/mnt/c/Program Files/WindowsApps’: Permission denied
Is this printout from the find and can it not be directed to grep? Essentially I want to be able to use find and it return the directory of the file to me (I'm going to wrap it into a function later).