![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| spell-norwegian 2.0.10 (Default branch) | iBot | Software Releases - RSS News | 0 | 03-10-2008 06:40 PM |
| Shell Sript - Spell Checker Assign | ccfc1986 | Shell Programming and Scripting | 9 | 11-15-2007 12:52 AM |
| spell | ravi raj kumar | UNIX for Advanced & Expert Users | 2 | 06-26-2007 08:51 AM |
| Spell Check | matrixmadhan | Post Here to Contact Site Administrators and Moderators | 2 | 12-28-2005 06:45 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
2.I need shell script to list all the 'words' in a
given file (text) that are not listed in a specified dictionary. Let us call this utility 'spell-check'. 'spell-check' will be called as follows. $ spell-check letter Lucent UNIX UNIX OS a $ dictionary words are listed in lower case. Thus 'spell-check' will have to convert words in its input to lower case before looking up the dictionary. However, when displaying possible misspellings, words should be printed as they appear in input. 'spell-check' should take the path for the dictionary from the environment variable SPELL_CHECK_DICT. 'spell-check' should treat any *sequence of letters* as a word. Digits, whitespace, punctuation characters will act as delimiters. It should be possible to use 'spell-check' in a pipe as:- $ cat letter | spell-check | sort a Lucent OS UNIX UNIX $ I have a program $ spell-check() for NAME in (cat $1) do if grep -i-s $NAME $SPELL_CHECK_DICT then else echo $NAME fi done |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|