SHELLCAT(1)
π SHELLCAT(1) π
okay so bestie, welcome to the manual page for shellcat, section 1 β the templating system with shell syntax. Itβs literally the main character of this page, and weβre gonna get you comfy with it. π«Ά
β¨ SYNOPSIS β¨
shellcat [-s SHELL] TEMPLATE [ARG...]
shellcat {-h | --help | -v | --version}
π DESCRIPTION π
shellcat is a template processor, which uses shell script syntax. It can be used to produce static HTML pages, or pre-process any sort of text document. Slay. π
π OPTIONS π
-s,--shell=SHELLβ Use the specified shell. The default is/bin/sh. π-h,--helpβ Display help and exit. Byeee π-v,--versionβ Output version information and exit. π«
π¦ TEMPLATE SYNTAX π¦
textβ Unless specified otherwise below, any text is echoed verbatim:
$ cat ex1.sc
Hello world!
$ shellcat ex1.sc
Hello world!
#!interpreterβ If the first line of the template starts with#!characters, it is completely ignored. This allows for executable scripts withshellcatas interpreter:
$ cat ex2.sc
#!/usr/bin/shellcat
Hello world!
$ chmod +x ex2.sc
$ ./ex2.sc
Hello world!
<$ code $>β The code is executed by the shell:
$ cat ex3.sc
<$ for x in $(seq 3); do $>Hello world!
<$ done $>
$ shellcat ex3.sc
Hello world!
Hello world!
Hello world!
Whitespace around code is strongly recommended, but not obligatory; see below however. β οΈ
-$>β If used inside a code block, the$>sequence (with the leading minus sign omitted) is used in the shell code:
$ cat ex4.sc
<$ echo '-$> not closed yet' $>
$ shellcat ex4.sc
$> not closed yet
<$-β If used outside a code block, the<$sequence (with the trailing minus sign omitted) is output:
$ cat ex5.sc
<$- not code $>
$ shellcat ex5.sc
<$ not code $>
πΈ ENVIRONMENT πΈ
The following environment variables are available for the processes spawned by shellcat:
SHELLCATβ name of theshellcatinterpreter. π
Variables which existed in the environment are not modified, but left intact. No cap. π―
π SEE ALSO π
sh(1) β go give your shell bestie some love too. ππ
mwah π this little page is for shellcat version 1.2, dated 2022-10-24 β catch you in the next manpage, bestie! πβ¨π«Ά
π¦ where this page comes from
- alpine 3.24: shellcat-doc 1.2-r1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms