1

Script to compare count of two csv files

view story
linux-howto

http://www.unix.com – Hi Guys, I need to write a script to compare the count of two csv files each having 5 columns. Everyday a csv file is recived. Now we need to compare the count of todays csv file with yesterday's csv file and if the total count of records is same in todays csv file and yesterday csv file out will be all good else it should display the difference of the counts. For eg:1-jan-2013 CSV file has 200 records 2-jan-2013 CSV file has 201 records. o/p will be "difference of 1 record" else o/p "is all good" (HowTos)