Usage: augprint [--target=realname] [--lens=Lensname] [--pretty] [--regexp[=n]] [--noseq] /path/filename -t, --target ... use this as the filename in the output set-commands this filename also implies the default lens to use -l, --lens ... override the default lens and target and use this one -p, --pretty ... make the output more readable -r, --regexp ... use regexp() in path-expressions instead of absolute values if followed by a number, this is the minimum length of the regexp to use -s, --noseq ... use * instead of seq::* (useful for compatability with augeas < 1.13.0) -h, --help ... this message -V, --version ... print augeas version information and exit. /path/filename ... full pathname to the file being analysed (required) augprint will generate a script of augtool set-commands suitable for rebuilding the file specified If --target is specified, then the lens associated with the target will be use to parse the file If --lens is specified, then the given lens will be used, overriding the default, and --target Examples: augprint --target=/etc/squid/squid.conf /etc/squid/squid.conf.new Output an augtool script for re-creating /etc/squid/squid.conf.new at /etc/squid/squid.conf augprint --lens=simplelines /etc/hosts Output an augtool script for /etc/hosts using the lens simplelines instead of the default for /etc/hosts augprint --regexp=12 /etc/hosts Use regular expressions in the resulting augtool script, each being at least 12 chars long If the value is less than 12 chars, use the whole value in the expression Regular expressions longer than 12 chars may be generated, if the 12 char regexp would be match more than one value