I have a file postmaster.log, in which I need to find pattern and change its value Pattern I need to find is
MaxValue=3 #this could be any value not just 3
I need to change its value to
MaxValue=0
Issue is there are also patterns like
"MaxValueSet=3" and "MaxValue is currently low"
Which are also getting replaced.I only has to change MaxValue=3 to MaxValue=0 I tried using sed
sed -i 's/MaxValue=3/MaxValue=0/g' /home/postmaster.log
But this only works if MaxValue=3 for anyother value it won't work.