cfgcat

Package: WA2L/WinTools 1.2.09
Section: Library Commands (3)
Updated: 05 April 2026
Index Return to Main Contents

 

NAME

cfgcat - join lines, replace environment variables and cat config file

 

SYNOPSIS

WA2LWinTools/lib/cfgcat [ -h | -V ]

cfgcat [ -a ] -f file.cfg

cat file.cfg | cfgcat [ -a ] -f -

cfgcat [ -a ] -f - < file.cfg

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

print the given configuration file with replaced environment variables, without comments and joined multiline entries.

Multiline entries are lines ending with a \ or ^ character.

The following variables are replaced by default (when not specifying -a) in the output are:

%COMPUTERNAME%
%USERDOMAIN%
%USERNAME%
%USERPROFILE%
%ProgramFiles%
%ProgramFiles(x86)%
%ProgramW6432%
%SystemDrive%
%TEMP%
%TMP%

The following variables are resolved from the registry for a better reliability:

%APPDATA%
%LOCALAPPDATA%

The following special variables are also replaced:

%INSTALLDIR%
%INSTALLDRIVE%

%YEAR%
%MONTH%
%DAY%
%HOUR%
%MIN%
%SEC%
%WDAY%
%YDAY%

%SEMICOLON%

 

OPTIONS

-h
usage message.

-V
program version.

-a
replace all existing environment variables from environment in addition to the ones listed above in the DESCRIPTION section.

file.cfg
configuration file.

 

ENVIRONMENT

see DESCRIPTION section.

 

EXIT STATUS

0
no error.

4
usage displayed.

5
version printed.

 

FILES

-

 

EXAMPLES

-

 

SEE ALSO

wintoolsintro(1), cat(1)

 

NOTES

-

 

BUGS

-

 

AUTHOR

cfgcat was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2026 Christian Walther

This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 16:42:44 GMT, April 05, 2026