From d1f6c89be163d9399d569e01458242d8ce15e041 Mon Sep 17 00:00:00 2001 From: wukong Date: Sun, 9 Sep 2018 23:48:31 -0700 Subject: added summations to quad_reg added in-progress lpf.awk (low pass filter), an adaptation of convolution script (conv.awk) to use delmitied columns as input additional tweaking of OFMT, OFS, and conditional print statements --- sum3.awk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sum3.awk') diff --git a/sum3.awk b/sum3.awk index bca92e3..3e4661f 100644 --- a/sum3.awk +++ b/sum3.awk @@ -11,7 +11,9 @@ function isnum(n) { } -NR==1 { +BEGIN { OFS = FS } + +NR == 1 { nfld = NF for (i=1; i<=NF; i++) numcol[i] = isnum($i) -- cgit v1.2.3