summaryrefslogtreecommitdiff
path: root/sum3.awk
diff options
context:
space:
mode:
authorwukong <wukong@longaeva>2018-06-16 23:38:02 -0700
committerwukong <wukong@longaeva>2018-06-16 23:38:02 -0700
commit4916e9b13765de970deff094abb3eb50c663834a (patch)
tree11d90adf7b1d7179298550bee866aa2ed7aa8a75 /sum3.awk
parent39d1486694b3baac5bfafe11f73e179530d6c109 (diff)
bumped up number of printed digits
Diffstat (limited to '')
-rw-r--r--sum3.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/sum3.awk b/sum3.awk
index 8ceda8b..bca92e3 100644
--- a/sum3.awk
+++ b/sum3.awk
@@ -25,8 +25,8 @@ NR==1 {
END {
for (i=1; i<=nfld; i++) {
- (numcol[i]) ? printf("%g", sum[i]) : printf("--")
- printf(i < nfld ? " " : "\n")
+ printf(numcol[i] ? sum[i] : "--")
+ printf(i < nfld ? OFS : ORS)
}
}