From: Francois Fleuret Date: Mon, 9 Aug 2010 09:02:14 +0000 (+0200) Subject: *** empty log message *** X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=8dfa1963e55ead8a842115a970fc3f99a1803cc6;p=scripts.git *** empty log message *** --- diff --git a/html2text.sh b/html2text.sh new file mode 100755 index 0000000..8c29b10 --- /dev/null +++ b/html2text.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +################################################################## +# START_IP_HEADER # +# # +# Written by Francois Fleuret # +# Contact for comments & bug reports # +# # +# END_IP_HEADER # +################################################################## + +set -e + +echo "(From html)" + +elinks -no-numbering -no-references -dump -dump-width 80 -dump-charset utf-8 | \ + sed -e "s/\[IMG\]//g" -e "s/^[ \t]*$//" -e "s/^ //" | \ + awk '/^$/{ if (! blank++) print; next } { blank=0; print }' + # | \ + # sed -e "s/^ *//"