Search code examples
linuxstringbashshellcut

How to cut some chars from string?


echo "(2abcd3rr3)" | 

I want my final output to be: 2abcd3rr3


Solution

  • You can use the tr command:

    echo "(2abcd3rr3)" | tr -d "()"