The
tr program is designed to replace some list of characters with another list. For example, to replace all lower case "a" "b" and "c" characters with upper case versions, you would use the command (prints results to standard output):
Code:
tr 'abc' 'ABC' < input_file
tr accepts c-style escapes for example \t to mean tab, \n to mean newline. So you could do this to replace all spaces and tabs with newlines:
Code:
tr ' \t' '\n\n' < input_file