github.com/benhoyt/goawk@v1.8.1/testdata/gawk/anchor.awk (about)

     1  BEGIN { 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  }