🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.shell
4 messages
4 total messages Started by Stephen Quan Thu, 10 Jan 1991 03:12
/usr/dict/words
#2336
Author: Stephen Quan
Date: Thu, 10 Jan 1991 03:12
6 lines
559 bytes
/usr/dict/words contains words from (I presume) the Oxford English Dictionary.
Is there any spell checking utilities that make use of this?  So far, the only
utility I know of is the 'look' command.

Steve Quan,
Uni. of Tas.
Re: /usr/dict/words
#2337
Author: Brian Fennell
Date: Thu, 10 Jan 1991 04:47
39 lines
1523 bytes
In article <quan.663477169@sol> quan@sol.surv.utas.oz (Stephen Quan) writes:
>/usr/dict/words contains words from (I presume) the Oxford English Dictionary.
>Is there any spell checking utilities that make use of this?  So far, the only
>utility I know of is the 'look' command.
>
>Steve Quan,
>Uni. of Tas.
 
 I wrote this as a fancy look up program.  there is also spell(1)
 which actually does spell checking on a file.  (I am not sure how 
 portable this is)
 - - - - - >8 - - - - - CUT - HERE - - - - - - - - - - - - - - - - - 
#! /bin/sh
td="/tmp/td$$"
lf="
"
here="`pwd`"


test "$#" '=' "0" -o '(' "$1" '=' "-h" -o "$1" '=' "-help" ')' &&
  echo "
  usage: $0 pattern ...

  a pattern consists of :
    letters 	match a..z, A..Z
    ?		wild, 1 unknown character
    *		wild, 0-or-more ?'s
    @		wild, 1-or-more vowels" &&
shift


mkdir $td; cd $td
for w in $* ; do
  ww="`echo $w | sed '/\?/s//\./g' | sed '/\*/s//\.\*/g' |
		 sed '/@/s//\[aeiouy\]\[aeiouy\]\*/g' `"
  echo ; echo " $ww :"
  grep "^$ww$" /usr/dict/words | head -100 | pr -t -w80 -5 2> /dev/null
done
cd $here; rmdir $td
Re: /usr/dict/words
#2351
Author: Shiping Zhang
Date: Thu, 10 Jan 1991 14:29
8 lines
798 bytes
In article <quan.663477169@sol> quan@sol.surv.utas.oz (Stephen Quan) writes:
>Is there any spell checking utilities that make use of this?  So far, the only
>utility I know of is the 'look' command.
 

Do you have the 'spell' command?

-ping
Re: /usr/dict/words
#2344
Author: Lance Speelmon -- UCS
Date: Thu, 10 Jan 1991 18:35
21 lines
1274 bytes
I have the source code for a full screen spell checker that uses the
dict file.

I will mail it to you if you would like...

Lance

In article <quan.663477169@sol> quan@sol.surv.utas.oz (Stephen Quan) writes:
>/usr/dict/words contains words from (I presume) the Oxford English Dictionary.
>Is there any spell checking utilities that make use of this?  So far, the only
>utility I know of is the 'look' command.
>
>Steve Quan,
>Uni. of Tas.


-- 
==============================================================================
| Lance Speelmon                      |  University Computing Services       | 
| speelmo@bronze.ucs.indiana.edu      |  Network Operations Center           |
==============================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads