6

是否有可用于在 Linux 上解析、编辑和编写/etc/network/interfaces的 C 或 C++ 库(格式见http://manpages.ubuntu.com/manpages/hardy/man5/interfaces.5.html )?

4

1 回答 1

7

http://augeas.net/

Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files.

于 2013-10-28T04:52:35.993 回答