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

AWK: adds "^M" at the end of line?



I am having problems with my AWK script. It used to work a
couple of months ago (on potato), but not anymore (on woody).
I have no idea why, since I seldom use it.  I tried both 
mawk and gawk.

Apparently, $0 includes a "^M" character at the end.
Thus, for an empty line: /^$/ has to be changed to  /^.$/ . 
Is there any wrong environment on my system?

Any clue?

--
Abdul Latip -- Angkasa Internet Junior Staff -- ANGIN.com
http://people.WebIndonesia.com/dullatip/ ----------------



-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: