I know how to use grep to output a line that matches a string. But what if I also want to output one line above every line containing a matching string, how do I do that?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
do the following
|
||||