aboutsummaryrefslogtreecommitdiffstats
path: root/test/nlfldsep.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/nlfldsep.sh')
-rwxr-xr-xtest/nlfldsep.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/nlfldsep.sh b/test/nlfldsep.sh
new file mode 100755
index 00000000..0a0a5f53
--- /dev/null
+++ b/test/nlfldsep.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+AWK=${AWK-../gawk}
+
+echo 'some stuff
+more stuffA
+junk
+stuffA
+final' | $AWK 'BEGIN { RS = "A" }
+{print NF; for (i = 1; i <= NF; i++) print $i ; print ""}'
+