Debian Codegraph @

bin/shellhtml

raw
1 #!/bin/bash
2 # HTML shell preprocessor
3 # syntax: shell code in a HTML comment with leading exclamation mark
4 # (in a new line, without leading and trailing whitespaces)
5 # will be executed by the shell, and the result replaced with it.
6 # For example, insert calendar:
7 # <!--!cal-->
8 awk '/^<!--!/{system(substr($0,6,length($0)-8)); next}{print}'