Hello.
I would like to search exactly "string1.string2.string3" and replace it by "new_string1.new_string2.new_string3"
And
I would like to search exactly "string2.string3" and replace it by "new_string2.new_string3"
And
I would not found in the result : "string1.new_string2.new_string3" because "string2.string3" is different from "string1.string2.string3"
"string1.string2.string3" are email address like firstname\_1.firstname_2.name@subdomain.domain.ext
"string2.string3" are email address like firstname.name@subdomain.domain.ext
So if size is different, a match should not apply in "string1.string2.string3" when search is done with "string2.string3"
How to do that ?
sed '/\<tring1.string2.string3\>/something_else/g' # dose not work.
sed '/\btring1.string2.string3\b/something_else/g' # dose not work.
sed '/\<tring1\.string2\.string3\>/something_else/g' # dose not work.
Any help is welcome