#/bin/sh # seiseki='seiseki14' # src=$* dir=`/usr/bin/dirname "$src"` foo=`/usr/bin/basename "$src"` csv=`/usr/bin/basename "$src" ".csv"` CSV=`/usr/bin/basename "$src" ".CSV"` locbin="/usr/local/bin" seisekibin="/Users/norio/Documents/office/seiseki/src" # if test $foo = $csv".csv" then tex=$csv".tex" else if test $foo = $CSV".CSV" then tex=$CSV".tex" else exit fi fi # if test -f $dir"/"$tex then rm $dir"/"$tex fi # $locbin"/nkf" -w -Z1 -Lu < $src | $seisekibin"/"$seiseki > $dir"/"$tex # exit