‘Tr’ Command #2 HackerRank Solution

Hello Programmers, In this post, you will know how to solve the ‘Tr’ Command #2 HackerRank Solution. This problem is a part of the HackerRank Linux Shell Series.

Ezoicreport this ad‘Tr’ Command #2 HackerRank Solution
‘Tr’ Command #2 HackerRank Solutions

One more thing to add, don’t directly look for the solutions, first try to solve the problems of Hackerrank by yourself. If you find any difficulty after trying several times, then you can look for solutions.

Ezoicreport this adProblem

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 Format

A block of ASCII text.

Output Format

Delete all the lowercase characters in the given block of text.

Sample Input

Hello
World
how are you

Sample Output

H
W

‘Tr’ Command #2 HackerRank Solutions

#In a given fragment of text, delete all the lowercase characters a - z.
tr -d "a-z"

Note: This problem (‘Tr’ Command #2) is generated by HackerRank but the Solution is Provided by  BrokenProgrammers. This tutorial is only for Educational and Learning purposes.

Next: ‘Tr’ Command #3 HackerRank Solution

Sharing Is Caring

Leave a Comment

Ezoicreport this ad