05-19-2016
Quote:
Originally Posted by
lm5522
Hi, thanks for your reply, none what so ever. I just wanted to keep it as simple as possible since i have just started in Linux shellscript writing.
I understand that you are satisfied with simple similarity, but this still means that you have to define the conditions under which you would regard two words as similar.
For example, you could see two words as similar, if they just differ in upper/lower case spelling. This would be easy to implement.
10 More Discussions You Might Find Interesting
1. Programming
hi all,
i have written the following code:
while(proceed !='Y' && proceed!='N' && proceed!='y' && proceed!='n')
{
printf("\nPress \n\t 'Y' or 'y' to continue \n\t 'N' or 'n' to cancel:");
scanf("%c",&proceed);
}
the output i am gettin is:
Press
'Y' to continue
... (1 Reply)
Discussion started by: mridula
1 Replies
2. Shell Programming and Scripting
Hi,
I have a directory called logs in which i have the log files.
i have to touch the file before deleting it.
i am doing like this
filestodelete="*.log* *log*"
for files in $filestodelete
do
touch $files $files.$(date +%a)
rm -f $filestodelete
done
touch is not working... (5 Replies)
Discussion started by: namishtiwari
5 Replies
3. UNIX for Advanced & Expert Users
Hi guys my while do loop is not working properly;
As soon as the load_date and run_date is same it should stop can somebody tell me where I am having the problem?
In an oracle table I have
LOAD_DT=5/1/2009 DATE datatype
RUN_DT=5/5/2009 DATE datatype
Now in a script with a spool file I get the... (15 Replies)
Discussion started by: henrysmith
15 Replies
4. Shell Programming and Scripting
Hi Guys,
This is my code.. I am getting an error in the inside while statement when comparing.. I am not able to figure it out.. Pls help me...
while read value fatherid son_id top_id r_type
do
inside_value=1;
echo $inside_value;
echo $r_type;
while
do
echo... (6 Replies)
Discussion started by: mac4rfree
6 Replies
5. Shell Programming and Scripting
Hi
What is wrong with this loop
it was taken has a example in book!!!
it returns
then
/usr/sbin/svcadm disable ppserv
else /usr/sbin/ppadmin stop
fi
} (3 Replies)
Discussion started by: Ex-Capsa
3 Replies
6. Shell Programming and Scripting
hi
I had created a while loop in a script file called whiletest.sh as follows
as follows:
count=0
max=10
while
do
echo $count
echo count=$(count+1)" "
done
echo "value of count:$count"
then i run the script with the command
sh whilestest.sh
but its giving me an error... (5 Replies)
Discussion started by: angel12345
5 Replies
7. UNIX for Dummies Questions & Answers
I have a while loop with -f and -o option.Can any one please tell me what that stands for?The Sample code is as follows:-
while
do
## some processing
done (10 Replies)
Discussion started by: Param0073
10 Replies
8. Shell Programming and Scripting
Hi Script Gurus,
I am facing issue with while loop in bash. The while loop is running as end less loop even after given criteria does not meet.
STATE_BEFORE_SPLIT () {
for clone in $Clonegroups; do
state=$( $Navicmd -listclone -name $clone -cloneid $Cloneid |awk... (3 Replies)
Discussion started by: RobP
3 Replies
9. Shell Programming and Scripting
Hi,
I work on Ab-initio ETL tool which is based on Unix. I made a small script which has two loop's one with in another. All the functionality is working for the first line of outer loop but when it comes to other lines of outer loop it is throwing error as command not found. Below is the... (4 Replies)
Discussion started by: Ravindra Swan
4 Replies
10. Shell Programming and Scripting
Hi all,
a problem with a loop. Imagine it starts with
var1="$(cat txtif.out )"while
do
echo file1
echo file2
echo y > txtif.out
if
then
break
fi
done
exit 0
the problem is that if the file is changing during the loop seems to continue as it reads "x" state,... (5 Replies)
Discussion started by: Board27
5 Replies
SPELL(1) General Commands Manual SPELL(1)
NAME
spell, spellin, spellout - find spelling errors
SYNOPSIS
spell [ -v ] [ -b ] [ -x ] [ -d hlist ] [ -s hstop ] [ -h spellhist ] [ file ] ...
spellin [ list ]
spellout [ -d ] list
DESCRIPTION
Spell collects words from the named documents, and looks them up in a spelling list. Words that neither occur among nor are derivable (by
applying certain inflections, prefixes or suffixes) from words in the spelling list are printed on the standard output. If no files are
named, words are collected from the standard input.
Spell ignores most troff, tbl and eqn(1) constructions.
Under the -v option, all words not literally in the spelling list are printed, and plausible derivations from spelling list words are indi-
cated.
Under the -b option, British spelling is checked. Besides preferring centre, colour, speciality, travelled, etc., this option insists upon
-ise in words like standardise, Fowler and the OED to the contrary notwithstanding.
Under the -x option, every plausible stem is printed with `=' for each word.
The spelling list is based on many sources. While it is more haphazard than an ordinary dictionary, it is also more effective with proper
names and popular technical words. Coverage of the specialized vocabularies of biology, medicine and chemistry is light.
The auxiliary files used for the spelling list, stop list, and history file may be specified by arguments following the -d, -s, and -h
options. The default files are indicated below. Copies of all output may be accumulated in the history file. The stop list filters out
misspellings (e.g. thier=thy-y+ier) that would otherwise pass.
Two routines help maintain the hash lists used by spell. Both expect a set of words, one per line, from the standard input. Spellin com-
bines the words from the standard input and the preexisting list file and places a new list on the standard output. If no list file is
specified, the new list is created from scratch. Spellout looks up each word from the standard input and prints on the standard output
those that are missing from (or present on, with option -d) the hashed list file. For example, to verify that hookey is not on the default
spelling list, add it to your own private list, and then use it with spell,
echo hookey | spellout /usr/dict/hlista
echo hookey | spellin /usr/dict/hlista > myhlist
spell -d myhlist huckfinn
FILES
/usr/dict/hlist[ab] hashed spelling lists, American & British, default for -d
/usr/dict/hstop hashed stop list, default for -s
/dev/null history file, default for -h
/tmp/spell.$$* temporary files
/usr/libexec/spell
SEE ALSO
deroff(1), sort(1), tee(1), sed(1)
BUGS
The spelling list's coverage is uneven; new installations will probably wish to monitor the output for several months to gather local addi-
tions.
British spelling was done by an American.
7th Edition October 22, 1996 SPELL(1)