summaryrefslogtreecommitdiff
path: root/nocompile/bin/htmltableize
blob: 0d4e099948b14b18942909ca3d923df0b78777f7 (plain) (blame)
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'