Thursday, February 25, 2010

Show lines arround the line found using grep

grep "pattern" -B "n" -A "m"
"n"= number of lines before match
"m"= number of lines after match

No comments:

Blog Archive