*** empty log message ***
authorFrancois Fleuret <francois@fleuret.org>
Mon, 9 Aug 2010 09:02:14 +0000 (11:02 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Mon, 9 Aug 2010 09:02:14 +0000 (11:02 +0200)
html2text.sh [new file with mode: 0755]

diff --git a/html2text.sh b/html2text.sh
new file mode 100755 (executable)
index 0000000..8c29b10
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+##################################################################
+# START_IP_HEADER                                                #
+#                                                                #
+# Written by Francois Fleuret                                    #
+# Contact <francois.fleuret@idiap.ch> 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/^ *//"