diff options
-rwxr-xr-x | nocompile/bin/htmltableize | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nocompile/bin/htmltableize b/nocompile/bin/htmltableize new file mode 100755 index 0000000..0d4e099 --- /dev/null +++ b/nocompile/bin/htmltableize @@ -0,0 +1,2 @@ +#!/bin/sh +sort ${2:} -k "${1:-1}" | tr -s ' ' | /usr/local/bin/encode_html_entities | sed 's/^/<tr><td>/g' | sed 's|$|</td></tr>|g' | sed 's| |</td><td>|g' |