Im using the following to serch for a string in all the files in a directory.
grep -Flr --include "*" 'mystring' /modules/
Which works perectly fine and returns the files which contain the string. However I also get a list of files with permission denied next to them which means looking for the results a bit harder.
Is there a flag to pass to the command to ignore outputting permission denied errors.