xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/anchor.awk (revision ed093b41a93e8563e6e1e5dae0768dda2a7bcc27)
1BEGIN { RS = "" }
2
3{
4	if (/^A/)
5		print "ok"
6	else
7		print "not ok"
8
9	if (/B$/)
10		print "not ok"
11	else
12		print "ok"
13
14	if (/^C/)
15		print "not ok"
16	else
17		print "ok"
18
19	if (/D$/)
20		print "not ok"
21	else
22		print "ok"
23
24	if (/^E/)
25		print "not ok"
26	else
27		print "ok"
28
29	if (/F$/)
30		print "ok"
31	else
32		print "not ok"
33}
34