![]() |
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 |
| Clueless about how to lookup and reverse lookup IP addresses under a file!!.pls help | choco4202002 | UNIX for Advanced & Expert Users | 0 | 08-26-2008 01:28 PM |
| Lookup file | mohan705 | Shell Programming and Scripting | 4 | 08-05-2008 04:22 AM |
| Lookup on a file | ukatru | Shell Programming and Scripting | 4 | 07-31-2008 01:25 AM |
| Lookup with a file | pavan_test | UNIX for Dummies Questions & Answers | 5 | 07-21-2006 10:57 AM |
| file lookup | gillbates | UNIX for Dummies Questions & Answers | 6 | 12-12-2003 02:04 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Multiple file lookup using awk
I want to lookup filea with fileb,filec and filed.
If entry in filea exist in fileb and filec mark Y and then if entry in filea exist in filed mark as Y. Final output should have all the entries from filea. Quote:
Code:
nawk -F"|" 'NR==FNR{a[$1];next} $1 in a{print $1} filea fileb
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|