use tr in bash script code example
Example: tr command
tr command replaces input chars for respective translated chars. Example:
echo 'dcba' > file.txt
tr 'abcd' '1234' < file.txt
4321
tr command replaces input chars for respective translated chars. Example:
echo 'dcba' > file.txt
tr 'abcd' '1234' < file.txt
4321