[X-Unix] Postfix howto

Kuestner, Bjoern Bjoern.Kuestner at drkw.com
Tue Jan 6 01:30:04 PST 2004


Victor, 

> From stdin, to stdout, probably.

> awk to the rescue. Fill in the dots, and
> awk 'v10 {print v10} {v10=v9} {v9=v8} ..... {v2=v1} {v1=$0}'
> can actually be used between stdin and stdout.

I tried the following on Solaris 8

cat test.txt | awk 'v10 {print v10} {v10=v9} {v9=v8} {v8=v7} {v7=v6} {v6=v5}
{v5=v4} {v4=v3} {v3=v2}{v2=v1} {v1=$0}' > test.out

And was returned the following:

awk: syntax error near line 1
awk: bailing out near line 1

Any clue?

(I am currently deciding where to set my priorities: Learn more about
Postfix, awk, maildrop or mailproc to catch up on everybody's suggestions.
(c: )

Thanks,

Bjorn



--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
--------------------------------------------------------------------------------



More information about the X-Unix mailing list