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 output file. 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 a preceding comment, a variable name, an assignment delimiter, 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 is an 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 one of the variables. Otherwise, if variables are included only in one of the 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 which determines whether a variable included both in the basefile and in the addfile is taken from the former or from the latter. Furthermore, a parameter controls whether the variable is removed from a copy of the basefile.
To keep the fillup v1.04 functionality, the outputfile parameter can be omitted -- this means the resulting output file is named exactly like the first input file name (basefile = outputfile).
If variables should be removed from the basefile, the basefile is not touched, but the result is written to basefile.new.
If basefile includes a header as part of the first variable this 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 described on several lines, each beginning with double hash and the optional keyword.
fillup -m "/etc/rc.config" "my.config" "/etc/rc.config"
All variables of "/etc/rc.config" are passed to the resulting 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 defined within "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 the resulting output file "/etc/rc.config". Variables defined only within "my.config" are appended. The additional parameter ’-r’ removes variables defined more than once from a copy of "/etc/rc.config". "/etc/rc.config" isn’t touched and the result of the removal is 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 names from "/etc/rc.config", this is named filter functionality. Additionally variables of "my.config" are appended if they are defined only in "my.config".
There are many options, which are displayed if fillup is called without or with the -h or --help option.
Most of the parameters are based on v1.04. In the sequel only useful parameters are listed:
--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
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 return EXIT_FAILURE;
If a bug occurs which is not based on invalid options or missing input files, please add the option -v|--verbose to the call. The result and some classifications are displayed to locate the bug.
With handlung of metadata and thus replacement of information within files a hardly documented debugging feature is introduced by 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.
Scherbaum, firstname.lastname@example.org (v1.04, 1996)
Joerg Dippel, email@example.com (v1.05, 1998)
Joerg Dippel, firstname.lastname@example.org (v1.06, 2000)
Joerg Dippel, email@example.com (v1.10, 2002)
Joerg Dippel, firstname.lastname@example.org (v1.21, 2003)
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.