tpl
Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 09 June 2024
Index
Return to Main Contents
NAME
tpl - select and print template file
SYNOPSIS
edrc/bin/tpl
[
select
]
AVAILABILITY
WA2L/edrc
DESCRIPTION
give a selection of template files to be printed to
stdout.
The
tpl
command can also be called directly from within
vi
when editing a recovery script, as:
1 #!/bin/bash
2 #
3 # new:new_script - <enter the description here>
4 #
5 # [00] 22.10.2021 root Initial Version
6 #
7 #
8 test "$DEBUG" = True && set -x
9
~
~
~
:. !tpl
After receiving the template data in
vi,
press
[Ctrl] + [L]
to redraw the terminal.
OPTIONS
- -h
-
usage.
- select
-
pre-select files from list of template files.
ENVIRONMENT
- $TPL_CFG
-
additional configuration file (to
$EDRC_SCRIPTS_BASEDIR/tpl.cfg
and
edrc/etc/tpl.cfg)
with template locations for
tpl.
EXIT STATUS
- 0
-
no error.
- 4
-
usage printed.
FILES
- edrc/etc/tpl.cfg
-
list of files to be listed in the selection.
The files are relative to the application root.
- edrc/var/samples/templates/
-
some default templates distributed with WA2L/edrc.
- $EDRC_SCRIPTS_BASEDIR/tpl.cfg
-
list of files to be listed in the selection.
The files are relative to the recovery scripts base directory.
- $TPL_CFG
-
additional list of files to be listed in the selection.
The files are relative to the configuration file defined in
$TPL_CFG.
EXAMPLES
-
SEE ALSO
edrcintro(1),
logtail(1),
logview(1),
outex(1),
tpl.cfg(4)
NOTES
-
BUGS
-
AUTHOR
tpl was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2022
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:54:44 GMT, August 28, 2024