Browse Source

grep.md: add -l example (#913)

Ayakashi 8 years ago
parent
commit
777305c630
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/common/grep.md

+ 4 - 0
pages/common/grep.md

@@ -31,6 +31,10 @@
 
 
 `grep -n {{something}} {{path/to/file}}`
 `grep -n {{something}} {{path/to/file}}`
 
 
+- Print file names with matches:
+
+`grep -rl {{something}} .`
+
 - Use the standard input instead of a file:
 - Use the standard input instead of a file:
 
 
 `cat {{path/to/file}} | grep {{something}}`
 `cat {{path/to/file}} | grep {{something}}`