I have a file like this:
# a
some
lines
# b
some
more
lines
...
Say I want to match that # b
paragraph:
# b
some
more
lines
I know that grep "# b" filename
can match that line of pattern that I am interested in, but I don't know how to perform "match until blank line" action. Not sure if grep is better than sed or awk for this task. Help?