summaryrefslogtreecommitdiff
path: root/lpf.awk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lpf.awk5
1 files changed, 3 insertions, 2 deletions
diff --git a/lpf.awk b/lpf.awk
index 814020f..aba92e1 100644
--- a/lpf.awk
+++ b/lpf.awk
@@ -5,6 +5,7 @@
BEGIN {
OFS = FS
+ ARGV[1] ? OFMT = "%." ARGV[1] "g" : OFMT = "%g"
sign = "[+-]?"
decimal = "[0-9]+[.]?[0-9]*"
fraction = "[.][0-9]*"
@@ -28,7 +29,7 @@ NF > 0 {
if (NF > nf_max)
nf_max = NF
- input_size = window_size
+ input_size = window_size
output_size = (input_size + window_size - 1)
### columns
@@ -72,7 +73,7 @@ NF > 0 {
printf(OFS)
else
printf(ORS)
-
+
}