Data wrangler, software engineer, systems programmer, cyclist. Unix (mostly Solaris) for aeons. I talk C, Python, SQL, Performance, Java, Kafka and Makefiles.
Location
Brisbane, Australia
Education
BA (Mathematics, Modern History), University of Queensland
I have a niggle for your otherwise very nicely written piece.
You mention the -l flag:
It will search only the names of files containing selected lines.
What -l actually means is it only print the names of files which contain the pattern you specify.
In addition, the GNU grep manpage says that "The scanning will stop on the first match." - which at first glance might imply that you only find the first file in the files being examined. To be precise, however, it means that for each file checkedgrep will stop checking that file if it has a match for the pattern.
I have a niggle for your otherwise very nicely written piece.
You mention the
-l
flag:What
-l
actually means is it only print the names of files which contain the pattern you specify.In addition, the GNU grep manpage says that "The scanning will stop on the first match." - which at first glance might imply that you only find the first file in the files being examined. To be precise, however, it means that for each file checked
grep
will stop checking that file if it has a match for the pattern.Thanks for the correction and additional information 😄