Antonio 9 лет назад
Родитель
Сommit
b0adce01cb
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      pages/common/grep.md

+ 4 - 0
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}}`