echo "apple" | tr [a-z] [A-Z] code example
Example: linux tr in file
Just use tr command as follows to replace a delimiter:
tr '(' '[' file.txt #replaces parenthesis '(' for brackets '['
tr '()' '[]' file.xt #respectively replaces '(' for '[' and ')' for ']'