shell find -exec tr code example
Example 1: tr replace
#Just define the replacement
tr [to_be_replace] [replacement] file.txt
#For example
tr a-z A-Z file.txt
Example 2: tr command
tr command replaces input chars for respective translated chars. Example:
echo 'dcba' > file.txt
tr 'abcd' '1234' < file.txt
4321