5
根据手册的grep
-l, --files-with-matches
Suppress normal output; instead print the name of each input
file from which output would normally have been printed. The
scanning will stop on the first match.
grep -l
,当发现匹配时,这似乎在精,含有该匹配的文件名是呼应。
但是,当我做grep -ln
,grep回声事件的每一行。
确定grep -l
确实意味着停止发现匹配的第一个匹配并停止扫描,而grep -ln
会忽略-l
标志?