find -type f -print0 | xargs -0 -n 10 grep -i searchstring
to search recursively for a string. But it also gives me error messages like "permission denied". How can I avoid such error messages and only see results?
Redirect standard error to /dev/null. I.e.
If the error messages come from find (e.g. because there's a directory you can't traverse, redirect its errors to
If the error messages come from grep (e.g. because some files are unreadable), redirect its errors to
There's no point in limiting the number of files passed together to