summaryrefslogtreecommitdiff
path: root/sum3.awk
diff options
context:
space:
mode:
authorwukong <wukong@longaeva>2018-09-09 23:48:31 -0700
committerwukong <wukong@longaeva>2018-09-09 23:48:31 -0700
commitd1f6c89be163d9399d569e01458242d8ce15e041 (patch)
treea263822af5cb1532f9eb1abe7b7ae6334c27d170 /sum3.awk
parente42cee748f5bc38d11742739b5e2cad4b6a07c43 (diff)
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
Diffstat (limited to 'sum3.awk')
-rw-r--r--sum3.awk4
1 files changed, 3 insertions, 1 deletions
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)