Since self-learning is the most effective way of learning, have a look at grep
it may have what you're asking for, with the right option which makes it not print the line in the file which has the asked word(s) inside, but rather the filename. Added with find
to list the wanted files by type, date or something else,
it makes some power already. Or if you just want to list stuff in certain directories, use ls
to create a list of files, and then grep
to "go through them" and report the filenames which have the wanted characters inside..
An example to look for iptables
inside the files that reside in the current directory (just off the top of my head, I didn't test it yet):
grep --with-filename iptables ./*
if it doesn't work, read the manpages, I may have made a mistake, I'm so tired..