# `pp` a preprocessor `pp` allows embedding `sh` code in files of any type by nesting it inside the `#!\n` token, where `\n` is a new line. That means that if you'd like a simple loop or an `if` inside an HTML file for instance, you could use `pp`. ## Usage For the following code:
#! echo $2 #!
Calling the above code with `pp tmp.upphtml 'pp example' 'hello, world'` will result in:hello world
## Pipes `pp`'s `stdin` is sent to the child [`sh`](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html)#! cat #!
`echo 'hello, world' | pp tmp.upphtml` will output:hello, world
## Debugging `pp` also takes an optional `-d` flag. If passed, `pp` will dump the generated [`sh`](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html) code instead of executing it://g"
}
smu README | addcls
#!
Files
#!
for f in *
do
case $f in
*.upp*|*.html|*.tgz)
continue
;;
esac
#!
- $f
#!
done
#!
Download
pp.tgz
## See also
*
*
*