mental note, as it took me a second to put it together: #!/usr/bin/env rc flag e + myList = ( aa bb cc) awk ' BEGIN { split(ENVIRON["myList"], myList, "\001") # "\000" on plan9 proper for (n in myList) print n, myList[n] } '