aboutsummaryrefslogtreecommitdiffstats
path: root/test/poundbang.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/poundbang.awk')
-rwxr-xr-xtest/poundbang.awk3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/poundbang.awk b/test/poundbang.awk
new file mode 100755
index 00000000..d60652e3
--- /dev/null
+++ b/test/poundbang.awk
@@ -0,0 +1,3 @@
+#! /tmp/gawk -f
+ { ccount += length($0) }
+END { printf "average line length is %2.4f\n", ccount/NR}