diff --git a/pages/common/grep.md b/pages/common/grep.md index 8b1a2ed37..e25f44842 100644 --- a/pages/common/grep.md +++ b/pages/common/grep.md @@ -23,6 +23,10 @@ `grep -c {{something}} {{file_path}}` +- print line number for each match + +`grep -n {{something}} {{file_path}}` + - use the standard input instead of a file `cat {{file_path}} | grep {{something}}`