1#!/bin/sh
2# excel2text - convert MS Excel files to ASCII text
3#
4# Written by Gary Johnson, Agilent Technologies <gjohnson@agilent.com>.
5
6prog=${0##*/}
7htmlfile=$1.html
8
9if [ $# -ne 1 ]
10then
11    echo "Usage: $prog file" >&2
12    exit 2
13fi
14
15if [ -f $htmlfile ]
16then
17    echo "$prog: $htmlfile already exists." >&2
18    exit 2
19fi
20
21xlhtml -te $1 > $htmlfile
22w3m -dump $htmlfile
23rm -f $htmlfile
24