#!/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): # :%! ~/bin/ispell-filter # # $$ is the process ID of the shell script. cat > /tmp/ispell.filter.$$ ispell $* /tmp/ispell.filter.$$ < /dev/tty > /dev/tty cat /tmp/ispell.filter.$$ rm -f /tmp/ispell.filter.$$ /tmp/ispell.filter.$$.bak # #_END_