summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/splitargv.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/splitargv.awk')
-rw-r--r--contrib/awk/test/splitargv.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/awk/test/splitargv.awk b/contrib/awk/test/splitargv.awk
new file mode 100644
index 0000000..10886ef
--- /dev/null
+++ b/contrib/awk/test/splitargv.awk
@@ -0,0 +1,7 @@
+BEGIN {
+ for (idx = 1; idx < ARGC; idx++)
+ split(ARGV[idx], temp, ".");
+ }
+ {
+ print $0;
+ }
OpenPOWER on IntegriCloud