3 ms·
grep -H "# TODO" file1 dir1/* file2 Is also useful, as it prints the filename and the matching lines.
by tyingq 7y ago
grep -H "# TODO" file1 dir1/* file2
Is also useful, as it prints the filename and the matching lines.
- asicsp 7y agoif you are using GNU grep, -H option gets enabled by default when there are multiple input files