'Tr' Command #1, is a HackerRank problem from Text Processing subdomain. In this post we will see how we can solve this challenge in Sh

Problem Description

In this challenge, we practice using the tr command because it is a useful translation tool in Linux. In a given fragment of text, replace all parentheses with box brackets .

Input Format

A block of ASCII text.

Output Format

Output the text with all parentheses replaced with box brackets . ....

You can find the full details of the problem 'Tr' Command #1 at HackerRank

Solution: Please check the tr-1.sh snippet for the solution.

This solution originally posted at: Github by @srgnk