|
update-cfe - add/remove sections in configuration files
|
update-cfe - add/remove sections in configuration files
update-cfe --add section --edit file [-d] [-v] {--infile infile,--stdin}
[--after regexp] [--before regexp]
update-cfe [-d] [-v] --remove section
update-cfe updates a text file and either add or removes a chunk of
text delimited by a cfe section tag.
- -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.
Written by Jörgen Hägg <jh@axis.com>.
Of course not! :-)
|
update-cfe - add/remove sections in configuration files
|