awk 'NR==FNR{a[$1]=$2;next}$1 in a{print $1,a[$1],$2} ' fileA fileB
In reply to Re: matching two files and print together the inputs
by suhailck
in thread matching two files and print together the inputs
by vis1982
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |