I have two files:
FileA:
INGROUP GROUP
xyz, abc
tst, def
dev, ghi
prd, jkl
FileB
GROUP ID
abc, developer
def, tester
ghi, integrator
jkl, analyst
I want the following output
File C
INGroup ID
xyz, developer
tst, tester
dev, integrator
prd, analyst
I tried this using join since the real files are really large there is some discrepancy going on during sort.
I want to do this using awk
The following is the code i developed but would need further help
awk -F',' 'FNR=NR {a[$2]=$1;next} {if (a[$1]) print ????
Your help is appreciated