I have an awk script that is getting me part of what I need. It is giving me the lines with the criteria I have specified.
{
if (($3 == 0) || (($9 == 304) || ($9 == 306)))
{ print $0 }
}
Here is what else I need to do but don't know how. In the
(($3==0) part, I ALSO need the line ABOVE that line. In the (($9 == 304) || ($9 == 306))) part, I ALSO need the line BELOW that line.
{
if (($3 == 0) || (($9 == 304) || ($9 == 306)))
{ print $0 }
}
Here is what else I need to do but don't know how. In the
(($3==0) part, I ALSO need the line ABOVE that line. In the (($9 == 304) || ($9 == 306))) part, I ALSO need the line BELOW that line.