Off topic:Sed command for replacements
2
0
Entering edit mode
8.8 years ago
Maria333 ▴ 20

Hi,

Does anyone know how I can replace ":" with "-" in linux?

I was able to remove the spaces and substitute them with ":", but now I need to remove one of the two ":" and replace it with a "-". For example:

1:12000000:13000000

into

1:12000000-13000000

I have tried it in several ways and it just brings everything back to empty spaces.

Thank you

sed • 1.2k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2567 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6