![]() |
|
|
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 |
| Crontab file doesnt seem to work | bsddaemon | AIX | 3 | 04-17-2009 10:01 AM |
| Replacing data of output file with input | bhagya2340 | Shell Programming and Scripting | 10 | 01-29-2009 02:09 PM |
| Identify matching data in a file and output to original line, in perl | Pcushing | Shell Programming and Scripting | 4 | 12-06-2008 08:41 AM |
| Input file redirect in output path and want name as inputfilename_new.txt | Sandeep_Malik | Shell Programming and Scripting | 6 | 09-17-2008 06:16 PM |
| Reading Input from File and Duplicates Output | noelcantona | Shell Programming and Scripting | 6 | 10-18-2005 05:59 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
awk should output if one input file doesnt have matching key
Code:
nawk -F, 'FNR==NR{a[$1]= $3 ;next} $2 in a{print $1, 'Person',$2, a[$2]}' OFS=, filea fileb
Input filea Quote:
Quote:
output i am getting : Quote:
Quote:
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|