How to use grep to search through files and not display warnings
In specific directory
$> grep -R --include="php.ini" "upload_max_filesize" /mydir 2> /dev/null
In all files
$> grep -R --include="php.ini" "upload_max_filesize" / 2> /dev/null
Print line number
grep -Rn vf/vfcore -e " VFFIFO_ReadBytesAvail" --include *.h Note always use -R instead of -r because otherwise you will miss some directories.
Recent Comments