[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:23:10 +0200 |
> Date: Tue, 13 Dec 2005 22:25:36 +0200
> From: "Blayer-Gat Alon" <address@hidden>
> Cc:
>
> address@hidden:~]$ ipconfig | awk '$1 == "IP" {print
> $NF"suffix" }'
> suffix8.0.100
>
> Not ok
>
> address@hidden:~]$ ipconfig | awk '$1 == "IP" {print
> "prefix"$NF"suffix" }'
> suffix192.168.0.100
>
> Not ok
It's not a Gawk bug. Try "ipconfig | od -c", and you will see that
each line ends with a "\r\r\n". The extra \r before the usual Windows
"\r\n" end-of-line marker causes the problem.
Why ipconfig outputs lines with this strange EOL, I don't know.