I have a similar question to this: Unix grep regex containing 'x' but not containing 'y'
The twist is that, I d like to grep the files around my search with -C5.
So the grep this myfile | grep -v that
won't work.
example: let say myfile
is as follows:
**
**
alpha
**
**
##
##
alpha beta
##
##
I d like to grep :
**
**
alpha
**
**
how would I achieve this?