1 2 3 4 5 6 7 8 9 10 11
function foo() { return "aaaaaab" } BEGIN { print match(foo(), "b") } { print match(substr($0, 1), "b") }