Quote:
Originally Posted by yunccll
it's no need to use awk! using join is ok, :-) and how to use awk?
.Aaron
|
But you're using join, 3 times sort and 2 temporary files!
With awk:
Code:
awk 'NR==FNR{a[$1]=$2;next}$3 in a{print $0 a[$1]" "a[$3]}' y.txt x.txt
Regards