xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/anchor.awk (revision a28480febf31f0e61debac062a55216a98a05a92)
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