unix tr replace character code example
Example 1: tr replace char for string
#Use sed for replacing a char witha string as in following example:
echo "a~b" | sed 's/~/==/g'
Example 2: tr replace
#Just define the replacement
tr [to_be_replace] [replacement] file.txt
#For example
tr a-z A-Z file.txt