![]() |
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 |
| join two files | koti_rama | Shell Programming and Scripting | 5 | 08-05-2008 04:20 AM |
| Join two files | koti_rama | Shell Programming and Scripting | 4 | 06-10-2008 06:15 AM |
| how to join files | jxh461 | UNIX for Dummies Questions & Answers | 5 | 08-23-2007 07:11 AM |
| join files | mohan705 | Shell Programming and Scripting | 3 | 03-15-2007 06:51 AM |
| Join Files | choppas | Shell Programming and Scripting | 2 | 10-18-2006 10:03 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Left join on files using awk
Quote:
Quote:
Quote:
Code:
nawk 'NR==FNR{a[$1];next} {if($1 in a) print $1,"Found" else print}' OFS="," File_B File_A
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|