HackerRank - 'Tr' Command #2
April - 25/2025Problem:
In this challenge, we practice using the tr command because it is a useful translation tool in Linux. In a given fragment of text, delete all the lowercase characters a- z.
# Input
- Hello
- World
- how are you
# Output
- H
- W
# Solution
tr -d "a-z"
# Solution_01
while read line
do
echo "$line" | tr -d "a-z"
done