I am using Sed to replace the major, minor and release number in version.
In my case:
version=10.2.0.1 (version=major.minor.release.buildnumber)
I don't want to change buildnumber in this version number. I only want to change the major, minor and release using sed
command.
existing
version=10.20.0.1
I want the output as version=11.21.2.1
(Build number should not change (last part in my version ))
I used below command
sed -i -r s/version=(.*)/version=11.21.2/g <filename>
it giving the output as
version=11.21.2
which is not my requirement.