If the original version number is stored in a variable, you can use substring replacement
. For example
otherwise use sed, as in
new_version=$(echo 18.104.22.168.22 | sed s/4[.]1[.]0[.]1[.]22/22.214.171.124.22/}
the square brackets around the dots in the pattern are character lists
: this is a way to make sed interpret a literal dot, otherwise it has the special meaning of any single character
and the strings 4c1.0d1.22 or 4.1e0.1922 match as well.