Character Transformation Using tr Command
📖 Scenario: You work in a small office where you often receive text files with inconsistent letter cases. Your task is to automate the process of converting all lowercase letters to uppercase to maintain uniformity in reports.
🎯 Goal: Build a simple Bash script that uses the tr command to convert lowercase letters in a given string to uppercase.
📋 What You'll Learn
Create a variable called
input_text with the exact value hello worldCreate a variable called
uppercase_text that uses tr to convert input_text from lowercase to uppercasePrint the value of
uppercase_text💡 Why This Matters
🌍 Real World
Automating text formatting tasks like converting letter cases in reports or filenames.
💼 Career
Shell scripting skills are essential for system administrators and developers to automate repetitive text processing tasks efficiently.
Progress0 / 4 steps