Why don't you grep first and awk the grepped output?
In reply to Re: extract problem by ambrus in thread extract problem by Anonymous Monk