![]() |
|
|
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 |
| compare 2 files.. | amon | Shell Programming and Scripting | 8 | 06-23-2008 11:34 AM |
| compare two files | charandevu | Shell Programming and Scripting | 7 | 03-30-2008 04:20 PM |
| Compare files | kharen11 | UNIX for Advanced & Expert Users | 25 | 03-14-2007 05:35 AM |
| compare files and beyond | MizzGail | UNIX for Dummies Questions & Answers | 2 | 04-25-2003 02:34 PM |
| compare files | ingunix | UNIX for Dummies Questions & Answers | 3 | 05-24-2001 12:44 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Compare two files
Hi,
I've got two files A and B File A: File B: 1;2;a;4;5 1;2;1;a;4;7 3;2;b;d;s 3;3;1;b;5;1 e;2;c;s;w l;8;4;d;5;s 4;3;f;w;q p;9;r;c;4;d e;3;q;w;q What I need to be able to do is take column THREE from file A and compare it with column FOUR from file B. i.e. File A (a;b;c) File B (a;b;d;c) The compare operation would ideally produce output like the following: File B contains a record [d] that is not contained in File A File A contains records [f;q] that are not contained in File B I've used the compare command but the output is very difficult to comprehend. Any help or pointers apperciated |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|