there are -A and -B switches for gnugrep. I am using AIX grep which doesn't support it, so my question is what is the best replacement for it? awk?
how to get n lines starting from matched line or n lines before the matched line using awk?
1. including matched line
2. not including the matched line
regards, m.
how to get n lines starting from matched line or n lines before the matched line using awk?
1. including matched line
2. not including the matched line
regards, m.