News for hackers. Stuff that matters.
Re:The Plain Text Project by tyingq on Monday December 02, 2019 @06:42PM (#21688350)
grep -H "# TODO" file1 dir1/* file2

Is also useful, as it prints the filename and the matching lines.

Re:The Plain Text Project by asicsp on Tuesday December 03, 2019 @10:06AM (#21692832)
if you are using GNU grep, -H option gets enabled by default when there are multiple input files
Re:The Plain Text Project by tyingq on Tuesday December 03, 2019 @10:31AM (#21693149)
Hopefully only when stdout isatty().

Edit: Nope, writes l̶i̶n̶e̶ ̶n̶u̶m̶b̶e̶r̶s̶ file names to output regardless. Boo.

Re:The Plain Text Project by asicsp on Tuesday December 03, 2019 @10:35AM (#21693196)
you mean filename, not line numbers?

option -h will disable filename in output