BEGIN { FS = "\t" for(i=1; i < ARGC; i++) { fnm=ARGV[i] while ( getline < fnm >0) { n=gsub(/\</, "<") n=gsub(/\>/, ">") print > "tmp" } close(fnm) close("tmp") system("rm " fnm ) system("mv tmp " fnm) print fnm } }