summaryrefslogtreecommitdiff
path: root/test/clsflnam.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/clsflnam.awk')
-rw-r--r--test/clsflnam.awk12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/clsflnam.awk b/test/clsflnam.awk
new file mode 100644
index 0000000..0ba601f
--- /dev/null
+++ b/test/clsflnam.awk
@@ -0,0 +1,12 @@
+#! /usr/bin/awk -f
+BEGIN {
+ getline
+# print ("FILENAME =", FILENAME) > "/dev/stderr"
+ #Rewind the file
+ if (close(FILENAME)) {
+ print "Error `" ERRNO "' closing input file" > "/dev/stderr";
+ exit;
+ }
+}
+{ print "Analysing ", $0 }
+