4
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.
Thanks
The default shell on FreeBSD is
tcsh
, which doesn't recognize2>
. – Roland Smith – 2014-12-28T15:13:51.360Thanks however for me it didn't work.
I found the following to work: grep -Flr --include "*" 'mystring' /modules/ | grep -v Perm – None – 2009-09-18T11:09:20.793