simple hack using the “join” command

$cat name.txt 
1 ram
2 shyam
3 raju
4 biju
$cat company.txt
1 google
2 facebook
3 twitter
4 ibm
$join company.txt name.txt 
1 google ram
2 facebook shyam
3 twitter raju
4 ibm biju
$join name.txt company.txt
1 ram google
2 shyam facebook
3 raju twitter
4 biju ibm
$