#!/bin/shBASENAME=`basename $1 .doc`; TMP="tmp.html"; OUT=$BASENAME".html" # convert M$-Word9[78] to HTML (UTF-8) mswordview -o $TMP $1 # convert HTML (UTF-8) to HTML (JIS) tcs -st ujis < $TMP | sed s/utf-8/iso-2022-jp/g |\nkf -j > $OUT rm -f $TMP exit 0 |