I am new to coding and already found a few topics about this on stackoverflow, but couldn't make it work, as they seem overextended to me. I might need some guidance.
I need to change some variables in an external bash script 'comlink.conf'. But only specific ones. Others should be left like they are.
ready=0
test=1
new=2
echo 'ready='$ready > comlink.conf
sleep 10
ready=1
echo 'ready='$ready > comlink.conf
If I do it like that, 'test=1' and 'new=2' will be overwritten completely and are gone from the file. That should not happen.
What would be the most easiest way to do this?
sedfor something like this