Check spelling between two files


Trivia Category: Science: Gadgets
Difficulty: Easy
The communication protocol NFC stands for Near-Field Control.
True or False?

 
Thread Tools Search this Thread
# 1  
Check spelling between two files

Hello, so I was wanting to find a way to check the spelling between two files to see if the terms in both were spelled correctly. However, this won't be for normal words, but for special terms, like "1732_1", to see if it is spelled the same way in one file as in the other, instead of "1732_1" in one file and "1735_1" in the other. The problem is that I have hundreds of these terms and have no way of doing this by eye. Thanks.
# 2  
Can you post sample input files and desired output after comparing them?
# 3  
Ok, here's input file 1:

Quote:
sp1 1234_1 1234_2
sp2 2345_1 2345_2
Here's file 2:
Quote:
(1234_1,(1234_2,(2345_1,(2345_2))));
(1234_1,(1234_2,(2345_2,(2345_1))));
What I'm wanting to do is to confirm that the same terms between the two files are actually spelled the same and that there are not any errors. For example, for 1234_1 in file 1, I want to make sure that it is 1234_1 in file 2 and not something else.

Essentially, file 2 is a list of trees (newick, for phylogenetics), and I want to make sure that the names on the tips of the trees are the same as the list of names in file one. Does this make sense?
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to get CRC check sum of files in java EAR file without extracting .jar/.war files to disk.?

unzip -v gives CRC info of each file in a zip(in my case .EAR) file. # unzip -v my-application.ear Archive: my-application.ear Length Method Size Cmpr Date Time CRC-32 Name -------- ------ ------- ---- ---------- ----- -------- ---- 197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies

2. Shell Programming and Scripting

Perl code to check date and check files in particular dir

Hi Experts, I am checking how to get day in Perl. If it is “Monday” I need to process…below is the pseudo code. Can you please prove the code for below condition. if (today=="Monday" ) { while (current_time LESS THAN 9:01 AM) ... (1 Reply)
Discussion started by: ajaypatil_am
1 Replies

3. Shell Programming and Scripting

need a shell script to extract the files from source file and check whether those files existonserve

Hi, I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is # echo $0 -sh My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies

4. Shell Programming and Scripting

How to check files and move the results to differents files?

Hi, I am a newbie to shell scripting. here is my objective: 1)The shell program should take 2 parameters - ie-> DestinationFolder, WebFolder 2)Destination folder contains few files that has to has be verified and deleted. 3)WebFolder is a folder containing a list of master files 4)It... (1 Reply)
Discussion started by: sandhyagupta
1 Replies

5. Shell Programming and Scripting

spelling check program

hi, all well, it's about spelling check, give a list of words as command line parameters and determine if they are in the dictionary. > myDictionary hello helloi hello is in the dictionary helloi is not. if spell command is not allowed to use. could i use grep -c in this way? if the count... (2 Replies)
Discussion started by: hyo77
2 Replies

Featured Tech Videos