BEGIN { FS=":!:" pat2rm="[(][0-9][0-9]*[)]" } { for(i=1; i<= NF; i++) { gsub(pat2rm, "", $i) print $i } }