diff --git a/pages/common/grep.md b/pages/common/grep.md index a0c7af699..53955b70a 100644 --- a/pages/common/grep.md +++ b/pages/common/grep.md @@ -11,9 +11,9 @@ `grep -F {{exact_string}} {{path/to/file}}` -- Search for a pattern recursively in the current directory, ignoring non-text files: +- Search for a pattern [R]ecursively in the current directory, showing matching line [n]umbers, [I]gnoring non-text files: -`grep -RI {{search_pattern}} .` +`grep -RIn {{search_pattern}} .` - Use extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode: