![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 columns from seven files and print the output | smriti_shridhar | Shell Programming and Scripting | 7 | 06-11-2008 12:22 AM |
| awk to compare lines of two files and print output on screen | chlfc | Shell Programming and Scripting | 3 | 03-24-2008 04:16 AM |
| Trying to compare lines in 2 files | brdholman | Shell Programming and Scripting | 2 | 09-20-2007 07:46 AM |
| Compare two files and merge columns in a third | CM64 | Shell Programming and Scripting | 20 | 04-04-2007 01:41 PM |
| Compare multiple columns between 2 files | stevesmith | Shell Programming and Scripting | 15 | 09-20-2006 12:04 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
compare files by lines and columns
Dear All,
Is it possible to compare 2 files line to line using column values? for example I have file1: 1;givi;01012000;wer 2;sss;02012000;rrr 3;ccc;03012000;ttt file 2: 0;uuu;01012000;lll 1;givi;01012000;wer 2;sss;02012000;rrr 3;ccc;03012000;ttt 5;givi;01012000;hhh I want to get only lines from file2 where combination of 2nd and 3rd columns do not exist in file 1. it means that one line from file2 shuld compare to all lines in file1????? Thanks in advance. Givi |
|
||||
|
help needed
Hello all awk masters.
i have query but i need add some change and i don't know how. my current awk program is : nawk -F"~" -f m.awk file1 m.awk: BEGIN { while(getline<"file2") arr[$1,$7]=1 } arr[$1,$7]!=1 {print } additionaly i need to change $2 from file1 to $2 from file2 so display is line from file1 with $2 from file2 Thanks in advance. Peter |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|