diff options
Diffstat (limited to 'test/watchpoint1.awk')
-rw-r--r-- | test/watchpoint1.awk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/watchpoint1.awk b/test/watchpoint1.awk new file mode 100644 index 00000000..5e7e9416 --- /dev/null +++ b/test/watchpoint1.awk @@ -0,0 +1,14 @@ +#! /usr/bin/gawk -f +BEGIN { + c = 0 +} + +/apple/ { + nr = NR + c++ + # printf "[c, NR] = [%s, %s]\n", c, NR +} + +END { + print c +} |