My configuration file, server.conf, has the following format
[general] setting1=sdfdsf setting2=asdfadsf [ssl] setting1=sadfsdf setting2=sdfadsfkljasdf
How do I add an additional setting to the "general" stanza using a bash script?
You could do it with
This seems to be mostly answered over on stackoverflow:
Basically its a job for SED or AWK and a little regex.