I'm trying to recalculate numbers in a file and replace them with new values. For example;
value=50
value=60
value=70
value=80
value=90
value=100
value=110
in file, I have some numbers and I want them divide by 2 and replace with new values.
I can find the numbers (\d+)$
and I can't use math operators when replace like $1 / 2
or ($1 / 2)
How I can replace their values with math applied values?
after replacement done, values should look like that
value=25
value=30
value=35
value=40
value=45
value=50
value=55