I'm trying to use the find command to find an excel file. However, I only want the files that DO NOT have "permission denied".
So, I tried the following:
find . -name "excel" | grep "!(permission denied)"
However, this doesn't work. I'm using grep version 4.5.12 on Cygwin. Why doesn't this command work? And, is there an easier way to do this? Ideally, the solution would involve find
and grep
because I'm very familiar with those commands.
Thanks.