bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Count empty line as a column with one empty field


From: Peng Yu
Subject: [bug-gawk] Count empty line as a column with one empty field
Date: Tue, 25 Sep 2018 09:33:06 -0500

Hi,

I see this.

$ printf '%s\n' a '' b | awk -e '{print NF}'
1
0
1

Is it possible to consider the empty line to contain one empty field
instead of no fields?

-- 
Regards,
Peng



reply via email to

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