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,

Reply via email to