echo "(2abcd3rr3)" |
I want my final output to be: 2abcd3rr3
2abcd3rr3
You can use the tr command:
tr
echo "(2abcd3rr3)" | tr -d "()"