#!/bin/sh # # MSExcel.sum - Summarizes Microsoft Excel files. # # Use xls2csv and take first 6000 lines of text. # xls2csv -s koi8-r -d koi8-r $1 | fmt -s -w 160 | head -n 6000 | wrapit "Partial-Text" exit 0 # # Alternatively, create a html format file from the input, then # pass that filename to the html summarizer. # if test -z "$TMPDIR"; then TMPDIR="/tmp" fi if test ! -r "$1"; then echo "MSExcel.sum: Cannot read file: $1" 1>&2 exit 1 fi tfile="$TMPDIR/xlhtml.$$.html" xlhtml $1 > $tfile 2> /dev/null HTML.sum $tfile rm -f $tfile exit 0