BEGIN{FS="\t"} { where = match($0, /\.([^\.\/]+)$/) if (where !=0) print $0 "\t" tolower(substr($0, where+1)) else print $0 }