[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Garbled print order
From: |
Eli Zaretskii |
Subject: |
Re: Garbled print order |
Date: |
Wed, 14 Dec 2005 06:25:03 +0200 |
> Date: Tue, 13 Dec 2005 15:54:07 -0500
> From: "John.Cowan" <address@hidden>
> Cc: address@hidden
>
> Blayer-Gat Alon scripsit:
>
> > address@hidden:~]$ ipconfig | awk '$1 == "IP" {print
> > $NF"suffix" }'
> > suffix8.0.100
>
> This is not a gawk bug. (I got suspicious when I saw that mawk failed
> in the same way.) Despite appearances, the actual output is
>
> 10.90.0.159\r\rsuffix\n
>
> This arises because "ipconfig" is a native Windows utility and outputs
> \r\n at the end of each line.
No, "\r\n" is what a native Windows utility _should_ have output at
the end of each line. However, ipconfig outputs "\r\r\n" instead, as
"od -c" reveals.