MAN page from CentOS Other fillup-1.42-1.2.x86_64.rpm
Section: Maintenance Commands (8)
Updated: Jan 2002Index
fillup - the SuSE tool for merging config files
fillup [options] basefile addfile outputfile
fillup [options] basefile addfile
fillup -V|--version ...
fillup -h|--help ...
fillup - merges input files into one resulting outputfile. Usually, each file is a configuration file.
fillup merges files which are holding variables(ie configuration or environment variables).A variable is defined by an entity composed of apreceding comment, a variable name, an assignmentdelimiter, and a related variable value.A variable is determined by its variable name.
A preceding comment is optional.An assignment delimiter may be optional, but if there isan assignment delimiter, a variable name must precede it.The last entity may be composed only of a comment.
Only if variables are included in both input files (basefile and addfile) fillup has to select oneof the variables.Otherwise, if variables are included only in one ofthe input files they are added to the resulting output file(with the exception of the -i|--ignoreDefinites option).
The functionality is now controlled by a parameter whichdetermines whether a variable included both in thebasefile and in the addfile is taken from the former orfrom the latter.Furthermore, a parameter controls whether the variableis removed from a copy of the basefile.
To keep the fillup v1.04 functionality, the outputfileparameter can be omitted -- this means the resultingoutput file is named exactly like the first input filename (basefile = outputfile).
If variables should be removed from the basefile, the basefile is not touched, but the result is written tobasefile.new.
If basefile includes a header as part of the first variablethis header is preserved only for the outputfile if after the header an empty line follows.
Starting with version 1.20 handling of metadata for /etc/sysconfig files is included.Metadata is part of preceding comment, each metadata line begins with double hash ("##"). A metadata line contains a pair <keyword>:<value>. The value itself can be describedon several lines, each beginning with double hash and theoptional keyword.
fillup -m "/etc/rc.config" "my.config" "/etc/rc.config"
All variables of "/etc/rc.config" are passed to theresulting output file "/etc/rc.config".Variables defined only within "my.config" are appended.
fillup -exchange "/etc/rc.config" "my.config"
Only variables of "/etc/rc.config" that are not also definedwithin "my.config" are passed to the resulting output file"/etc/rc.config".All variables of "my.config" are appended.
fillup -m -r "/etc/rc.config" "my.config" "/etc/rc.config"
All variables of "/etc/rc.config" are passed to theresulting output file "/etc/rc.config".Variables defined only within "my.config" are appended.The additional parameter '-r' removes variables definedmore than once from a copy of "/etc/rc.config"."/etc/rc.config" isn't touched and the result of the removalis written to "/etc/rc.config.new".
fillup -i "/etc/rc.config" "my.config"
This is a filter functionality. Variables of"/etc/rc.config" are only passed to the resulting output file"/etc/rc.config" if they are defined in both input files.Because "my.config" is normally only a list of variable namesfrom "/etc/rc.config", this is named filter functionality.Additionally variables of "my.config" are appended if theyare defined only in "my.config".
There are many options, which are displayed if fillup is calledwithout or with the -h or --help option.
Most of the parameters are based on v1.04. In the sequel onlyuseful parameters are listed:
-i, --ignoreDefinites filter functionality
-t, --trailing save trailing comment
-v, --verbose maximum output to screen
-V, --version print fillup version and exit
-c | --char <char> use <char> as comment marker
-d | --delim <char> use <char> as delimiter
-m, --maintain maintaining the basefile
-x, --exchange exchanging the basefile
-r, --remove removing within a copy
fillup returns EXIT_SUCCESS on successful completion.Otherwise, an exception handler is called, which may returnEXIT_FAILURE;
If a bug occurs which is not based on invalid options ormissing input files, please add the option -v|--verbose to thecall. The result and some classifications are displayed tolocate the bug.
With handlung of metadata and thus replacement of informationwithin files a hardly documented debugging feature is introducedby adding two options on command line:information about a special variable (given by --variable <variable name>)is logged into a special file (determined by --logfile <file name>).
fillup is copyright 1996,1997,1998,1999,2000,2001 by SuSE GmbH, Germany.fillup is copyright 2002,2003 by SuSE Linux AG, Germany.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Martin Scherbaum, maddinAATTsuse.de (v1.04, 1996)
Joerg Dippel, jdAATTsuse.de (v1.05, 1998)
Joerg Dippel, jdAATTsuse.de (v1.06, 2000)
Joerg Dippel, jdAATTsuse.de (v1.10, 2002)
Joerg Dippel, jdAATTsuse.de (v1.21, 2003)
- EXIT CODE
This document was created byman2html,using the manual pages.