terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user@linux:~$
tr - Character Translation
Learn to translate, delete, and squeeze characters with the tr command.
Step 1
Convert lowercase text to uppercase using tr. Pipe some text through tr with character ranges.
Type: echo 'hello world' | tr 'a-z' 'A-Z'
echo 'hello world' | tr 'a-z' 'A-Z'
Step 2
Use tr -d to delete all digits from a string.
Step 3
Use tr -s to squeeze repeated spaces into a single space.
Step 4
Use character classes [:upper:] and [:lower:] to convert case.