From 777305c630b47205cf496ca691b368770b26abc1 Mon Sep 17 00:00:00 2001 From: Ayakashi Date: Tue, 21 Jun 2016 15:11:27 +0800 Subject: [PATCH] grep.md: add -l example (#913) --- pages/common/grep.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/grep.md b/pages/common/grep.md index b19811565..6307dadd5 100644 --- a/pages/common/grep.md +++ b/pages/common/grep.md @@ -31,6 +31,10 @@ `grep -n {{something}} {{path/to/file}}` +- Print file names with matches: + +`grep -rl {{something}} .` + - Use the standard input instead of a file: `cat {{path/to/file}} | grep {{something}}`