|
-
March 1st, 2006, 12:20 PM
#3
Re: Perl: compare two files & output to a new file
The Cpan compare the whole files though.
I want to compare if the text match or not.
Like the nameList.txt is after 3 character until it hit whitespace or tab.
Just grab this only: | | |CCCCCCC* and takes only CCCCCCC and ignore the rest on that line.
And in checklist.txt, just grab the second column only.
1 CCCCCCC takes only --> CCCCCCC
When finised grabbing both files, compare those two.
If column grab in checkList.txt doesn't match with name grab in nameList.txt, output that name to a new file.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|