Monday, October 19, 2009

Command-line tip

Don’t know how to spell a word?

You can use aspell/ispell’s pipe mode to help you.

For aspell:
echo word | aspell pipe
For ispell:
echo word | ispell -a

For example:
Correct word:
andrew@andrew-desktop:~$ echo “air” | aspell pipe
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6)
*

Misspelled word:
andrew@andrew-desktop:~$ echo “zugar” | aspell pipe
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6)
& zugar 21 0: sugar, cigar, Zukor, Gar, gar, sugars, sugary, Zak, Ziggy,
agar, Sega, saga, scar, cougar, Hagar, Luger, auger, augur, huger,
sager, sugar’s

The command line is cool.

blog comments powered by Disqus