If some text is like
cell (ABC)
(A1)
(A2)
function (A1.A2)
I want output as
cell ABC
A1
A2
function (A1.A2)
I want to remove bracket from each line of file except the present in function line. Using code
sed 's/[()]//g' file
Removes bracket from each line. How can I modify the above code to get desired output.