Simple linux command line command to modify an option in a INI like config file

前端 未结 3 1746
北海茫月
北海茫月 2021-02-15 15:03

I am looking for a generic command line solution that would allow me to add or modify a configuration option inside a config file (ini like format).

Most linux configur

3条回答
  •  醉话见心
    2021-02-15 15:43

    Augeas / augtool aims to do this, although you'll need the right lens for the type of file you're after (you can also write your own), for example, the Nginx lens.

    It also has an API if required.

提交回复
热议问题