summaryrefslogtreecommitdiff
path: root/test/nfloop.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/nfloop.awk')
-rw-r--r--test/nfloop.awk8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/nfloop.awk b/test/nfloop.awk
new file mode 100644
index 00000000..c37700ac
--- /dev/null
+++ b/test/nfloop.awk
@@ -0,0 +1,8 @@
+BEGIN {
+ $0 = "aaa"
+ NF = 10
+ for (j = 2; j <= NF; ++j) {
+ $j = "_"
+ }
+ print
+}