#!/bin/bash # # view-html - a script to convert html into text. # # Phil Hollenback # philiph@pobox.com # # $Id$ if type w3m >/dev/null 2>&1 then w3m -T text/html -cols 80 -dump $1 | tr \\240 " " | tee /usr/tmp/reply.txt elif type lynx >/dev/null 2>&1 then lynx -dump -force_html /dev/fd/0 <$1 | tee /usr/tmp/reply.txt else echo "$0: can't find w3m or lynx" >&2 exit 1 fi