title: Print the line and a line 10 lines before the match in Linux
body: <p>I want to match a string in a file, print the line which matches and the line 10 lines before the match occurs. I am trying using awk, sed and grep, but cant get the right thing. Can anyone help?</p>