Ooops sorry, something broke.
The format is the following:
#!/home/adi/src/pp/pp
<!doctype html>
<html lang="en">
<title></title>
<table>
#!
ls -1 "$1" | while IFS= read -r p
do
#!
<tr>
<td>
$p
</td>
</tr>
#!
done
#!
</table>
</html>
Code is here
http://adi.tilde.institute/tmp/pp.c.
On Mon, Apr 22, 2019 at 4:55 PM Adrian Grigore
<adrian.emil.grigore_AT_gmail.com> wrote:
>
> Hi,
>
> I built a preprocessor. It allows embedding shell code in any type of files.
> Can you guys give some tips or a code review?
>
> The file format it accepts is the following:
>
> #!/home/adi/src/pp/pp
> <!doctype html>
> <html lang="en">
> <title></title>
> <table>
> #!
> ls -1 "$1" | while IFS= read -r p
> do
>
> </table>
> </html>
>
>
> --
> Thank you,
> Adi,
--
Thank you,
Adi
Received on Mon Apr 22 2019 - 16:06:51 CEST