Common patterns
This page lists useful common patterns to help developing Augeas lenses. Most of these lenses could probably be included into generic modules to be called from new modules later on.
Contents |
[edit]
Ini file
[edit]
Format example
# This is an Ini file [SECTION1] field1 = value1 # another comment [section2] # a third comment field2 = value2
[edit]
Example implementation
There is a generic module for Ini files on Generic_modules/IniFile.
[edit]
Logrotate / xinetd
[edit]
Format example
[edit]
Example implementation
[edit]
Comments
Comments are one of the hardest patterns to deal with in Augeas. See the Dealing with comments page for more information.


