NAME
update-cfe - add/remove sections in configuration files
SYNOPSIS
update-cfe --add section --edit file [-d] [-v] {--infile infile,--stdin} [--after regexp] [--before regexp]
update-cfe [-d] [-v] --remove section
DESCRIPTION
update-cfe updates a text file and either add or removes a chunk of text delimited by a cfe section tag.
OPTIONS
- -d
-
Set debug mode, write_file will not overwrite destination file if debug is non-zero.
- -v
-
Verbose editing
- --stdin
-
Read data to be added from stdin.
- --infile file
-
Read data to be added from file file.
- --add section
-
Add text to file. section is a cfe section tag, can be anything acceptable to cfe. add will try to remove the section before adding it.
- --remove section
-
Remove text from file. section is a cfe section tag, can be anything acceptable to cfe.
- --after-sect section
-
Will add section of text after section or at the end of file if not found.
- --before-sect section
-
Will add section of text before section or at the end of file if not found.
- --after regexp
-
Will add section of text after regexp or at the end of file if not found.
- --before regexp
-
Will add section of text before regexp or at the end of file if not found.
AUTHOR
Written by Jörgen Hägg <jh@axis.com>.
BUGS
Of course not! :-)
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 140:
You forgot a '=back' before '=head1'
- Around line 142:
Non-ASCII character seen before =encoding in 'Jörgen'. Assuming CP1252