Cfpeek User Manual (split by section):   Section:   Chapter:FastBack: Tutorial   Up: Tutorial   FastForward: Formats   Contents: Table of ContentsIndex: Concept Index

3.7 Using Various Parsers

Cfpeek can handle input files in various formats. The default one is ‘Grecs’ format, introduced in previous sections. To process input files of another format, specify the parser to use via the --parser (-p) command line option. The argument to this option is one of: ‘grecs’, ‘bind’, ‘path’, ‘meta1’ or ‘git’. See Formats, for a detailed description of each of these formats.

For example, to select zone statements from the /etc/named.conf file:

$ cfpeek --parser=bind /etc/named.conf '.*.zone'

Cfpeek User Manual (split by section):   Section:   Chapter:FastBack: Tutorial   Up: Tutorial   FastForward: Formats   Contents: Table of ContentsIndex: Concept Index