Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'make this command easier to use with an alias' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
make this command easier to use with an alias
Authored by: hayne on Jul 11, '07 08:44:03PM
I use the following Bash alias (set up via my ~/.profile):


findword () { /usr/bin/grep ^"$@"$ /usr/share/dict/words ; }

Sample usage:


% findword '.oat'
boat
coat
doat
goat
moat
toat

% findword 'oat...'
oatbin
oatear
oathay
oathed


[ Reply to This | # ]