[LUNI] Help with awk

Stef stefmit at comcast.net
Mon Apr 5 09:53:52 CDT 2004


On Apr 5, 2004, at 8:17 AM, Joe Frost wrote:

> Try this
>
> # postqueue -p | \
> awk '/^[0-9A-F]/ && \
> ($2 < 2000 || ($2 > 3000 && $2 < 7000) || $2 > 8000 ) \
> {print $2}'
>
> Ignore the line wraps if you want.  Just trying to make it legible.
> I assumed that the first character of the line is always going to be 
> hex
> to eliminate the header and total.
>
> Joe
>

Thank you! That does it (and I can use $1 for the message ID I want to 
process).

Stef



More information about the luni mailing list