Translate Characters Using tr Command
📖 Scenario: You work in a small office where you often receive text files with inconsistent letter cases. Your task is to create a simple script that converts all lowercase letters to uppercase letters to make the text uniform.
🎯 Goal: Build a script that uses the tr command to translate all lowercase letters in a given string to uppercase letters.
📋 What You'll Learn
Use the
tr command to translate charactersTranslate all lowercase letters to uppercase
Use echo to provide input text
Display the translated output
💡 Why This Matters
🌍 Real World
Translating text case is common when cleaning data or preparing text files for consistent formatting.
💼 Career
Many automation and scripting tasks require text manipulation using commands like <code>tr</code> to standardize input data.
Progress0 / 4 steps