Search Results

Search: Posts Made By: murpholinox
2,901
Posted By rdcwayx
You will get file "not.match.txt" automatically. ...
You will get file "not.match.txt" automatically.

awk 'NR==FNR{a[$1 FS $2]=$3;b[$1 FS $2]=$4;next}
{ if (a[$1 FS $2]!="") {$3=a[$1 FS $2]+$3; $4=b[$1 FS $2]+$4;print}
else {print >...
2,901
Posted By rdcwayx
awk 'NR==FNR{a[$1 FS $2]=$3;b[$1 FS $2]=$4;next} ...
awk 'NR==FNR{a[$1 FS $2]=$3;b[$1 FS $2]=$4;next}
a[$1 FS $2]!="" {$3=a[$1 FS $2]+$3; $4=b[$1 FS $2]+$4;print}' FS=, OFS=, file1 file2
Showing results 1 to 2 of 2

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