5
-ln grepのためのマニュアルに従って、のgrep -lと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
フラグを無視しますか?