Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Comparison between two files through UNIX script

$
0
0
Hi All ,
As I am new to unix scripting ,I need a help regarding unix scripting .I have two .txt files .One is source file and onother is target file.I need a script through which I can compare those two files.I need a automated comparison report in a directory after comparing between source & target files.Comparison report should contain below info :
1.Source & Target Count Validations(Source count & Target Count)
2.Column level source & target mismatches(No of mismatch & mismatch details)
3.Source & target duplicate count on particular record level(Source duplicate count & target duplicate count)
4.Source & target missing record validations on particular record level(Source missing count & target missing count)
5.Null validations(No of fields null in source not null in target and vice versa)

I have also attached one sample source & target file for reference.If anyone can help me in this regard ,it will be really helpful for me.Thanks !

Attached Files
File Type: txt source.txt (770 Bytes)
File Type: txt target.txt (584 Bytes)

Viewing all articles
Browse latest Browse all 16232

Trending Articles