Skip to main content

tr

# Replace all occurrences of a character in a file
# and print the result
tr old_char new_char < path/to/file

# Replace all occurrences of a character
# from another command's output
command | tr old_char new_char

References​