bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to print a "line feed" without "carriage return" ?


From: Vollmer, Manfred
Subject: How to print a "line feed" without "carriage return" ?
Date: Fri, 26 Aug 2005 11:45:22 +0200

Hello,

 

it seems to be impossible to print a simple line feed "\x0A" ; gawk
always inserts a "\x0D" in front of it.

My test program is the following batch file: 

 

C:\GnuWin32\bin\gawk "BEGIN { print \"X\x0AYZ\" >\"Test.txt\" }"

 

The result is a file with (Hex-Dump):

 

58 0D 0A 59 5A 0D 0A                               X..YZ..

   ^^

 

How to avoid the 0D ???  (I want to use gawk to prepare text files for
an import into EXCEL.)

My gawk version is 3.1.3, I run it under Windows XP professional.

 

-------

 

Another problem is, that (when printing numbers) the decimal point is
printed as comma. How to force gawk to print the decimal point correctly
as point? 

 

 

Thank you for your help.

 

Manfred Vollmer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]