I have a sed command as follows:
sed -i 's/),(/),\n(/g' myfile
myfile is like this:
(237),(238)
The expected result is:
(237),
(238)
The actual result is:
(237),n(238)
I have tried many ways to write new line, but all failed. Is it possible to get the expected result?
I found that GNU sed
works, but BSD sed
not.