0

I have an existing config config.ini file with the following content:

VALUE_A=a
VALUE_B=b

Using Bash, I'd like to add a new key-value pair VALUE_C=c to get the following:

VALUE_A=a
VALUE_B=b
VALUE_C=c

Is there a concise way to do this with Bash (ideally a one liner)?

astiegler
  • 315
  • 3
  • 15

1 Answers1

0

As suggested in the comments, the answer is simply:

echo VALUE_C=c >> config.ini

astiegler
  • 315
  • 3
  • 15