Script to check Doc-BBB against Doc-AAA for inconsistence
I'm going to make a script checking inconsistence on 2 documents
Doc-BBB is reproduced from Doc-A, (original document) not with 'copy and paste' command.
Making it simple first, as highlighted in following example, an one line document:-
must be reproduced exactly the same as Doc-AAA, disregarding the typing mistake (spelling mistake)
sea = should read “see”
scannars = should read “scanners”
in order to make sense.
That is to check Doc-BBB to be 100% consistent to Doc-AAA even spelling mistake existing. If a mistake is found on Doc-BBB the mistake will be printed out in pair, such as;
Can any folk shed me some light how to start?
Could I point you to man diff?
Tks for your advice and URL. Test performed as follows;
Original document "doc_a"
But the reproduced document "doc_b" must maintain these 2 mistakes for consistence.
$ diff doc_a doc_b
It only printed out the content of doc_a and doc_b. I have tried the options on --help
What I expect to have in the printout is;
|All times are GMT -5. The time now is 06:02 PM.|