1 #!/bin/rc 2 3 awk ' 4 BEGIN { FS = " |, " } 5 { for(i=2; i<=NF; i++)print $i " " $1 } 6 ' $1 | 7 tr A-Z a-z | 8 sort -u -t' ' +0f -1 +0 -1 +1n -2