We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Linux Shell
  3. Text Processing
  4. 'Tr' Command #1

'Tr' Command #1

Problem
Submissions
Leaderboard
Discussions
Tutorial

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 .

Sample Input

int i=(int)5.8
(23 + 5)*2

Sample Output

int i=[int]5.8
[23 + 5]*2

Author

PRASHANTB1984

Difficulty

Easy

Max Score

1

Submitted By

28990

Need Help?


View tutorial
View discussions
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy