I often have to modify files such as sysctl.conf, and I\'m familiar with using sed to replace existing values.
sysctl.conf
Is there a way to append the new key/value pa
Use below pseudo code:
if (grep -q key); then sed... else echo key=value >> $CONFIG_FILE fi