Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2005 13:21:10 +0800
From:      Xu Qiang <Qiang.Xu@fujixerox.com>
To:        Dan Nelson <dnelson@allantgroup.com>, Xu Qiang <Qiang.Xu@fujixerox.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: 1 byte more?
Message-ID:  <20050720051806.5DE721D92E@imss.sgp.fujixerox.com>

next in thread | raw e-mail | index | archive | help
Dan Nelson wrote:
> vi probably put a newline character after the one you typed.  You can
> use
> =

>   echo -n 0 > count.txt
> =

> or a text editor that doesn't force a newline as the last character in
> a file (joe for example).

Yes, You hit the point again. =


I used xemacs to hex edit that file, to find a newline character (0x0a) is =
added to the txt file, even though I didn't touch the "Enter" key in my key=
board. Maybe vi is too aggressively helpful. :)

Your "echo -n" is a solution. And xemacs is also a better choice without th=
is annoying problem. =


Thank you, =


Regards,
Xu Qiang





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050720051806.5DE721D92E>