# Adds a way to more simply insert flags into text # Each flag is represented with an ftag (text that is preceded by &&) # Available flags: # Great Britain - &&gb BEGIN { flag[1] = "gb" title[1] = "ENG" for (i = 1; i <= length(flag); i++) { flagExp[i] = "&&" flag[i] flagTag[i] = "\""" } } { for (i = 1; i <= length(flagExp); i++) { gsub(flagExp[i], flagTag[i]) } print }