Something that seemed quite useful to me when looking for a certain var in a bunch of config files:
less * | grep some_var
So this returns the value of
some_var without manually looking through all config files. Nice! But what if I didn't only want to know the value of
some_var and wanted to change it? What file is it in? How do I get the
less command (or
grep, or another command) to display the var and what file it was found in?
I searched the man-page, but couldn't find any suitable option...