![]() |
|
|
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 |
| Need Help Comparing two Files | awknerd | Shell Programming and Scripting | 4 | 09-03-2008 01:24 AM |
| Comparing two files | superstar003 | Shell Programming and Scripting | 2 | 05-08-2008 05:36 AM |
| Comparing two txt files - pls help | jisha | Shell Programming and Scripting | 5 | 01-23-2008 04:14 AM |
| Comparing two files.. | padarthy | Shell Programming and Scripting | 1 | 08-29-2007 09:01 AM |
| comparing shadow files with real files | terrym | UNIX for Advanced & Expert Users | 4 | 02-09-2007 02:38 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Comparing two files using awk
Hi,
I have 2 text files n1 and n2. cat n1 : -------- 1234567890 4444444444 cat n2 : --------- 1234567890 4444444444 7777777777 8888888888 they are some sample records. File n1 contains some lookup records, whereas file n2 contains some transaction records. I need to get the transaction records from file n2 , which are not there in lookup file n1. For eg., from the above files I should get : 7777777777 8888888888 Is there any way using AWK arrays? grep will run for hours since the records are millions. Thanks in advance kanu_kanu |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|