tr replace

C++
#Just define the replacement 
tr [to_be_replace] [replacement] file.txt
#For example
tr a-z A-Z file.txt
Source

Also in C++: