summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/clsflnam.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/clsflnam.awk')
-rw-r--r--contrib/awk/test/clsflnam.awk12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/awk/test/clsflnam.awk b/contrib/awk/test/clsflnam.awk
new file mode 100644
index 0000000..5392891
--- /dev/null
+++ b/contrib/awk/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 }
+
OpenPOWER on IntegriCloud