#!/bin/sh # # Look up spelling of selected word (using aspell) and display info in xmessage # popup. ('selected word' is primary X selection) # Requires 'xclip'. word=`xclip -o -selection primary` exec echo $word | aspell pipe | xmessage -title "Spell Checker" -file - &