Browse Source

grep: simplify -l example to match the others

Waldir Pimenta 8 năm trước cách đây
mục cha
commit
385a89558e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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: