#! /bin/nawk # put text at randam # BEGIN{FS=",";srand();} { tbl[NR] = $2; } END {printf("%s\n", tbl[ int(NR * rand())+1 ]);}