Tr

From BITS wiki
Jump to: navigation, search


replace characters in your text

tr can replace all instances of a character in to another one.

# Very usefull when your text file comes from windows or mac and should be converted to unix format at the level of line feeds (return).

tr "\r" "\n" < inputfile > outputfile



back to Manual pages | back to the Main page