Jun 29, 2010 #1 alan147 Technical User Nov 15, 2002 128 GB Good afternoon I urgently need to select data from one file where the entry in field 1 matches the data in field 1 of a second file does anyone have a solution? Thanks Alan
Good afternoon I urgently need to select data from one file where the entry in field 1 matches the data in field 1 of a second file does anyone have a solution? Thanks Alan
Jun 29, 2010 1 #2 PHV MIS Nov 8, 2002 53,708 FR A starting point: Code: awk 'NR==FNR{t[$1];next}($1 in t)' "second file" "one file" > output Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
A starting point: Code: awk 'NR==FNR{t[$1];next}($1 in t)' "second file" "one file" > output Hope This Helps, PH. FAQ219-2884 FAQ181-2886
Jun 29, 2010 Thread starter #3 alan147 Technical User Nov 15, 2002 128 GB Great, you've really helped me out. Thanks very much. Alan Upvote 0 Downvote