The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 05-20-2005
ksjanakan ksjanakan is offline
Registered User
  
 

Join Date: May 2005
Location: colombo
Posts: 1
Question spell checker program

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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0