Skip to content
Peter Johnson edited this page Nov 22, 2022 · 5 revisions

Welcome to the rpt wiki

This is the home of documentation for rpt.

⚠️⚠️ THIS WIKI IS BEING USED TO JOT DOWN IDEAS AT PRESENT. DON'T ASSUME ANYTHING IS FIXED. ⚠️⚠️

rpt is a command line utility that recursively replaces placeholders in a text document with text represented by the placeholders.

Placeholders are embedded in a source document and rpt processes that document, replacing all placeholders with their values and writes the result out to a different file. The names of the files are passed to rpt on the command line.

We said rpt is "recursive". What that means is that the text that rpt uses to replace a placeholder can itself contain further placeholders. Replacement of placeholders continues recursively until all placeholders have been replaced.

Placeholders are resolved at run time. Their values can be defined in a file, set from environment variables, defined on the command line or be generated by a built in commands. Values can be further processed using built in filter functions.

Clone this wiki locally