Hi Ram, Thank you so much for your suggestion. this command
sed 's/_[A-Z0-9]+[.][0-9]+//g' myfile.fasta
Doesn't works. I am now trying something like
sed 's/_+[A-Z]+[A-Z]+[0-9]+[0-9]+[0-9]+[0-9]+[0-9]+[0-9]+[.]+[0-9]//g' myfile.fasta
And it also doesn't works. Would you have any sed manual to suggest? Many thanks!
I would try simply
sed 's/_[A-Z].[0-9]*.[0-9]//g'myfile.fastaYou're using
.as both a metacharacter and a literal.. Are you sure it will work reliably and the.that is supposed to match the literal.won't end up matching something else?yes I agree Ram, Here
.may match anything. to make it more reliable we can use\.instead. ThanksThanks!! It works!!
just cut:
Thank you so much!!
This command works:
=D
Please stop adding answers. This content belongs as a reply to my comment. I'm moving it to a comment on the top level post now.