I have data in multiple files. I want to find some text that matches in all files. Can I use the
grep command for that? If yes then how?
I ultimately did:
grep -rli 'match_me' -- file1 file2 file3
It appears to be widely standard on Debian/Bash systems that a double dash with no name means no more flags can be defined; Often implying that all remaining arguments are file paths. Though disclaimer, I do not know if this is the intended semantic or just a symptom that fits to the tools I use.