[illumos-Developer] awk, nawk, oawk, ...

Gordon Ross gordon.w.ross at gmail.com
Tue Apr 5 10:35:24 PDT 2011


Anyone in a position to try this on a recent MacOS?
(They reportedly have a more recent version of what we call nawk)

On Tue, Apr 5, 2011 at 1:25 PM, Andrey N. Oktyabrski <ano at bestmx.ru> wrote:
> On 04/05/11 20:30, Garrett D'Amore wrote:
>> Both xpg4/awk and nawk apparently have deficiencies, such that either
>> one of them would require work to be able to replace the other.
> For example:
> $ printf "a\nb\n\n" \
>  | /usr/bin/nawk 'BEGIN{RS="\n\n"; ORS="=\n"} {print}'
> a=
> b=
> =
> $ printf "a\nb\n\n" \
>  | /usr/bin/awk 'BEGIN{RS="\n\n"; ORS="=\n"} {print}'
> a=
> b=
> =
> $ printf "a\nb\n\n" \
>  | /usr/xpg4/bin/awk 'BEGIN{RS="\n\n"; ORS="=\n"} {print}'
> a=
> b=
> =
>
> But the gawk is right here:
> $ printf "a\nb\n\n" \
>  | /usr/bin/gawk 'BEGIN{RS="\n\n"; ORS="=\n"} {print}'
> a
> b=
>
>
> _______________________________________________
> Developer mailing list
> Developer at lists.illumos.org
> http://lists.illumos.org/m/listinfo/developer
>



More information about the Developer mailing list