Entering edit mode
4.8 years ago
eDNAuRNA
▴
20
Hi everyone,
I am trying to replace the first period by a hyphen in following strings by using regex (?<=\d\d)\.
12345.678910-68597-19_A250_M007_001_1_1.abcde.fg
I am using sed
command as sed 's/(?<=\d\d)\./-/'
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