Search text for a pattern. Use -R for directories and -n to show line numbers.
grep -Rni "error" ./logsLINUX COMMAND ATLAS · COMMAND GUIDE
Search text for a pattern. Use -R for directories and -n to show line numbers.
GNU Grepgrep [OPTION]... PATTERN [FILE...]
Search text for a pattern. Use -R for directories and -n to show line numbers.
grep -Rni "error" ./logsShow matching lines and their line numbers.
grep -n 'error' app.logSearch .conf files recursively, ignoring case and showing line numbers.
grep -Rni --include='*.conf' 'timeout' ./configQuote patterns containing shell characters. Use -F for literal text and -E when regular-expression syntax is intended.