瀏覽代碼

grep: simplify -l example to match the others

Waldir Pimenta 8 年之前
父節點
當前提交
385a89558e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/common/grep.md

+ 1 - 1
pages/common/grep.md

@@ -33,7 +33,7 @@
 
 - Print file names with matches:
 
-`grep -rl {{search_string}} .`
+`grep -l {{search_string}} {{path/to/file}}`
 
 - Use the standard input instead of a file: