[dev] Preprocessor

From: Adrian Grigore <adrian.emil.grigore_AT_gmail.com>
Date: Mon, 22 Apr 2019 16:55:51 +0300

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
    #!
       <tr>
            <td>
              $p
            </td>
       </tr>
    #!
done
#!
</table>
</html>

Here's the code:

http://adi.tilde.institute/tmp/pp.c

--
Thank you,
Adi,
Received on Mon Apr 22 2019 - 15:55:51 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 22 2019 - 22:36:08 CEST