You can use the -s
or --no-messages
flag to suppress errors.
-s, –no-messages suppress error messages
grep pattern * -s -R -n
More Related Contents:
- Can grep show only words that match search pattern?
- Count all occurrences of a string in lots of files with grep
- How can I grep recursively, but only in files with certain extensions?
- Grep only the first match and stop
- Spider a Website and Return URLs Only
- How to grep with a list of words
- How to grep for two words existing on the same line? [duplicate]
- Ansible shell module returns error when grep results are empty
- How do I find all files containing specific text on Linux?
- grep a file, but show several surrounding lines?
- Using the star sign in grep
- grep: show lines surrounding each match
- How do I find files that do not contain a given string pattern?
- Using grep to get the next WORD after a match in each line
- How to concatenate multiple lines of output to one line?
- How to get the process ID to kill a nohup process?
- how to find a search term in source code
- How to find all files containing specific text (string) on Linux?
- How to search and replace using grep
- Grep and Python
- Using grep for multiple search patterns
- Display filename before matching line
- How do you search for files containing DOS line endings (CRLF) with grep on Linux?
- Using sed and grep/egrep to search and replace
- grep a tab in UNIX
- grep for special characters in Unix
- Using grep to search for hex strings in a file
- How to grep commits based on a certain string?
- How to do a non-greedy match in grep?
- How to make “grep” read patterns from a file?