function label(name, text) { text = "[" name "]"; return text } BEGIN { text = "outside" } { print label($1) } END { print text }