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
標誌?