I am searching through few logs and I want to grep the last match along with it's above and below few lines.
grep -A10 -B10 "searchString" my.log
will print all the matches with after and before 10 lines
grep "searchString" my.log | tail -n 1
will print the last match.
I want to combine both and get the after and before 10 lines of last match.