I searched this forum, but couldn't find in instance where this had been resolved. Sorry if i missed it.
Text file:
(1)
(1)
(2)
(3)
(4)
(6)
(14)
Desired output:
1
1
2
3
4
6
14
Sed Attempt:
sed '1,$ s/\(//g' '1,$ s/\(//g' <infile >outfile
First question: Can I link muliple search/replace together like that.
Second question: Do I need the "1,$" range with sed?
Third question: Why does it complain about an imbalance?
As always... Your help is my enlightenment.
Thanks
Text file:
(1)
(1)
(2)
(3)
(4)
(6)
(14)
Desired output:
1
1
2
3
4
6
14
Sed Attempt:
sed '1,$ s/\(//g' '1,$ s/\(//g' <infile >outfile
First question: Can I link muliple search/replace together like that.
Second question: Do I need the "1,$" range with sed?
Third question: Why does it complain about an imbalance?
As always... Your help is my enlightenment.
Thanks