I have a string in a file like this:
"Value1=[random number]"
After this string I want to add another string, specifically:
"Value2=100"
If I try to use:
sed '/Value1=/a Value2=100' myfile.txt
It will fail because I have not included the fact that Value1=[some random number].
How do I add the condition that Value1=random number and Value2 should be added to this string?