gravatar for eDNAuRNA

2 hours ago by

Hi everyone,

I am trying to replace the first period by a hyphen in following strings by using regex (?<=dd).

12345.678910-68597-19_A250_M007_001_1_1.abcde.fg

I am using sed command as sed 's/(?<=dd)./-/'
To make the output as follows:

12345-678910-68597-19_A250_M007_001_1_1.abcde.fg

However, in Linux its not working.

Can anyone help where I am making a mistake?

Thanks



Source link