If it doesn't work, you could do this:
$ find . -name "my.txt" 2>&1 | grep -v "Permission denied"
The above command will suppress only "Permission denied" warning message, and show any other warning or error messages unfiltered.
reference:
http://xmodulo.com/how-to-suppress-warning-or-error-messages-in-find-command.html
No comments:
Post a Comment