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