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