preproc(1)
π preproc(1) π
okay so bestie, welcome to preproc β she lives in the General Commands Manual section, and she's about to make your text files do tricks. π
β¨ NAME β¨
preproc β the name, the moment, the icon. π
πΈ SYNOPSIS πΈ
preproc [-h] [--no-break-on-failure] [--debug] [-e <varname>=<value>]
[-s PATH] [-C path]
π¦ DESCRIPTION π¦
So. preproc is a simple text preprocessor that implements a very basic templating language. That's it, that's the whole vibe. π
Here's the tea: you can drop {{{ <bash_code> }}} tags into a text file, then pipe that file's content into preproc. And preproc will replace each of those tags with the stdout of <bash_code> and print the final renderred result to its own stdout. Slay. β¨
okay but for real, read this twice: NOTE: you need to trust the input files that you pass topreproc. Runningpreprocon an unknown file is equivalent of running an unknown script on your computer. π like, literally the same energy. no cap. be careful who you let in, bestie. π«Ά
π OPTIONS π
--no-break-on-failureβ normallypreprocwill immediately stop processing as soon as an error is encountered. This switch changes the behavior. so instead of ghosting you at the first problem, she keeps going. π--debugβ print each encountered tag and its env during input processing. it's giving behind-the-scenes commentary, iykyk. π-e <varname>=<value>,--env <varname>=<value>β set a variable into macro processing environment, e.g.-e VAR=VALUE. drop it in, she'll remember it. π-s PATH,--source PATHβ sources given file into macro processing environment. May be used multiple times. so like, stack them up, the more the merrier. π-C pathβ directory to operate in. where she does her little work. π
π AUTHORS π
preproc was written by clime <clime@fedoraproject.org>. absolute main character energy from clime, honestly. π
π DISTRIBUTION π
The latest version of preproc may be downloaded from https://pagure.io/rpkg-util/blob/master/f/preproc
go get her, she's waiting. π§
okay that's the whole page bestie, love that for us. π this was the Manual for preproc(1) β periodt. β¨ππ¦
π¦ where this page comes from
- epel 9: preproc 0.5-6.el9 Β· GPLv2+
- fedora 43: preproc 0.5-14.fc43 Β· GPL-2.0-or-later
- fedora 44: preproc 0.5-15.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms