![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File Comparison- Need help | uihnybgte | Shell Programming and Scripting | 8 | 04-13-2009 05:04 AM |
| tsv file comparison | Swapna173 | UNIX for Dummies Questions & Answers | 0 | 03-25-2009 03:44 AM |
| file comparison | satish.res | Shell Programming and Scripting | 7 | 10-09-2008 08:55 AM |
| file comparison...help needed. | er_ashu | UNIX for Dummies Questions & Answers | 4 | 05-15-2008 10:37 PM |
| File Comparison | net_shree | Shell Programming and Scripting | 19 | 01-10-2008 08:00 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi i have 2 csv files a.csv and b.csv with the same number of columns and a list of values in both of it. Each and every individual value in both the files need to compared and if it matches then print correct in a new csv file otherwise print Incorrect
eg a.csv 1,12/27/2007,Reward,$10.00 2,12/27/2007,Reward,$20.00 3,12/27/2007,Reward,$30.00 4,12/27/2007,Commission,$40.00 5,12/28/2007,Reward,$10.00 6,12/27/2007,Reward,$20.00 7,12/27/2007,Reward $30.00 b.csv 1,12/27/2007,Reward,$10.00 2,12/27/2007,Reward,$20.00 3,12/27/2007,Reward,$30.00 4,12/27/2007,Reward,$40.00 5,12/28/2007,Reward,$10.00 6,12/27/2007,Reward,$20.00 7,12/27/2007,Reward $30.00 After comparing these two csv files the final comparison csv file should look like this Correct,Correct,Correct,Correct Correct,Correct,Correct,Correct Correct,Correct,Correct,Correct Correct,Correct,Incorrect,Correct Correct,Correct,Correct,Correct Correct,Correct,Correct,Correct Correct,Correct,Correct,Correct Im new to Shell script and awk programming. Suggest me acode with explanation for this requirement in either awk programming or shell scripting. Please do make it soon its very urgent Looking forward for your quick response Regards, Naveen |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|