I have a file called app.properties like this
prop1.value=hi prop2.value=hello prop3.url=https://google.com
As per my requirement, If I see any
.value , i need to call an utility function to get the value replaced. just for the example the utility simply multiples the number of chars passed to it * 2.
So, it should become like this.
prop1.value=4 prop2.value=10 prop3.url=https://google.com
I have done simple find and replacement with sed. Not sure how to call any command to replace the value.
sed -E 's/.value=(.*)/.value=\1/g' app.properties
If sed is not correct choice, can you suggest any other alternative?