tr new line code example Example: tr new line Just use tr command as follow: tr , '\n' < file #Replaces all ',' matches for a new line