Search Results

Search: Posts Made By: suneet17
4,056
Posted By ni2
with join join -1 3 -2 2 -o "1.1 1.2 2.2 2.3"...
with join
join -1 3 -2 2 -o "1.1 1.2 2.2 2.3" file1 file2

Sorry, this only looks at the 3rd field in file1 and the 2nd field in file2. Not what the OP wanted.
4,056
Posted By guruprasadpr
awk 'NR==FNR{a[$1$3]=$0;next}{print a[$1$2],$3;}'...
awk 'NR==FNR{a[$1$3]=$0;next}{print a[$1$2],$3;}' file1 file2

Guru.
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy