Search Results

Search: Posts Made By: Danish Shakil
1,716
Posted By radoulov
awk 'NR == FNR { key[$1, $2] = $3; next }...
awk 'NR == FNR {
key[$1, $2] = $3; next
}
$2 = $2 OFS key[$1, $2]
' OFS=\\t b.txt a.txt
1,716
Posted By malikshahid85
Below code works exactly as you want.but a.txt...
Below code works exactly as you want.but a.txt should be like
A.txt.
grectec; 10 ,53, 60, base_123 ; top09
grectec; 30 ,50, 60, base_123 ; top09
grectec; 30 ,55, 60, base_123 ; top09
grectec; 50...
1,716
Posted By radoulov
awk > C.txt 'NR == FNR { b[$1] = $2; next ...
awk > C.txt 'NR == FNR {
b[$1] = $2; next
}
$0 = $0 FS b[$2]
' B.txt A.txt
47,487
Posted By macsx82
Join multiple files by column with awk
Hi all,
I searched through the forum but i can't manage to find a solution. I need to join a set of files placed in a directory (~1600) by column, and obtain an output with first and second column...
Showing results 1 to 4 of 4

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