How can I have grep not print out 'No such file or directory' errors?

The Solution to How can I have grep not print out 'No such file or directory' errors? is


You can use the -s or --no-messages flag to suppress errors.

-s, --no-messages suppress error messages

grep pattern * -s -R -n

~ Answered on 2011-06-21 13:51:05


Most Viewed Questions: