tr command line tutorial
https://www.tecmint.com/tr-command-examples-in-linux/
tr means translate
It will walk through all the characters in the text and can translate a character or a phrase into a new character or a new phrase.
For example:
nguyenhuybo@VN-LV00184-N ~ % echo "Hello my love" | tr "[:lower:]" "[:upper:]"
HELLO MY LOVE
nguyenhuybo@VN-LV00184-N ~ % echo "{**} <3 me"| tr "{}" '[]'
[**] <3 me
nguyenhuybo@VN-LV00184-N ~ % echo I am sorry| tr "[:space:]" "\t"
I am sorry %
Comments
Post a Comment