Excluding certain paras from a file

Hi,
I have a log file which might have certain paragraphs.

Switch not possible Error code 1234
Process number 678

Log not available Error code 567
Process number 874
.....
......
......

Now I create an exception file like this.

cat text.exp
Error code 1234
Process number 874

What I want is to read my original file but exclude any paragraphs that might contact the keywords written in the exception file. How can I do that?

Do you want to exclude the lines between the 2 lines of your exception file?

awk '
NR==FNR{a[++i]=$0;next}
$0 ~ a[1]{f=1}
$0 ~ a[2]{f=0;next}
!f' logfile text.exp

Regards

I didnt understnd your question properly. Also I want to exclude entire paras not just matching lines.

Hi.

At a quick glance this appears to be the same as your earlier question removing certain paragraphs for matching patterns ... cheers, drl