#!/bin/ksh # run w3m to get a nice text version of an HTML file. prog='/usr/local/bin/w3m -dump -T text/html' case "$#" in 0) $prog ;; *) $prog < $1 ;; esac exit 0