Is it possible to initialize an array like this in AWK ?
Colors[1] = (\"Red\", \"Green\", \"Blue\") Colors[2] = (\"Yellow\", \"Cyan\", \"Purple\")
Thanks for the answers. Anyways, for those who want to initialize unidimensional arrays, here is an example:
SColors = "Red_Green_Blue" split(SColors, Colors, "_") print Colors[1] " - " Colors[2] " - " Colors[3]