I would like to replace each version old number in a file with a new one. For example 1.12.5 with 1.13.
My solution so far is this command: sed -i '' -e "s/1.12.5/1.13/g" file.txt
For now I have the problem that this command also replaces the numbers, if they appear separately in a line, e.g. blabla 1.12.5blablabf1b12b5blabla -> blabla 1.13blablabf1.13blabla
However it should return blabla 1.13blablabf1b12b5blabla
.
Thanks in advance.