Hi Team
there is a requirement to do validate on Flat files using Shell Scripting.
Suppose we have two flat files ( F1, F2).
Validation
-
Row count between F1 and F2
a) Write it in a file with results of count of each file and differences if any -
Apply checksum or any other efficient way of hashing each row in given data in both F1 and F2
a) compare each rows in F1 and F2 using hashing technique, log the exact mismatched column value in a row or entire row based on mismatches found if any -
Have a provision to exclude columns in a file such that condition mentioned above 1 * 2 will be excluded during comparison check.
any help would be greatly appreciated.
thank you