I am using Sed to replace the major, minor and release number in version.
In my case:
I don't want to change buildnumber in this version number. I only want to change the major, minor and release using
I want the output as
(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
which is not my requirement.