'Cut a string in two groups in bash
Lets say I have this string:
A single (very ugly) tree (Outdoor treks) 2.
I wanna split it in 2 groups: the first one contains the substrings that are not in (), and the second one the last substring that is in ()
1stGroup:
A single tree 2
2ndGroup:
Outdoor treks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
