#!/bin/sh # # This little script can be used to run ispell on stdin, returning the # result through stdout. # # It can be used from VI like this (or map it to a key sequence): # :%! ~/usr/local/bin/spell # # Last updated by rb on Tue Oct 21 07:48:41 EST 2003 # tmpdir=/tmp tmpfile=ispell.$$.tmp ispell=/usr/bin/ispell #ispell_args=-x -B -S rm=/bin/rm cat > $tmpdir/$tmpfile #echo $ispell $ispell_args $tmpdir/$tmpfile $ispell $tmpdir/$tmpfile /dev/tty 2>&1 $rm -f $tmpdir/$tmpfile cat $tmpdir/$tmpfile