Search Results

Search: Posts Made By: Scrutinizer
14,401
Posted By Scrutinizer
Hi djoseph, did you try my suggestion in post #7?...
Hi djoseph, did you try my suggestion in post #7? It does seem to produce the desired output with the new samples..
14,401
Posted By Scrutinizer
Something like this? awk 'NR==FNR{A[$2]=$1;...
Something like this?
awk 'NR==FNR{A[$2]=$1; next} $6 in A{$13=1; $14=A[$6]}1' FS=, OFS=, file2 file1
Otherwise post new samples..
14,401
Posted By Scrutinizer
You will find are many examples of this kind of...
You will find are many examples of this kind of join operation.. Try:
awk 'NR==FNR{A[$2]=$1; next} $12==1 && $1 in A{$6=A[$1]}1' FS=, OFS=, file2 file1

--edit--
Mornin' Don ;)
Showing results 1 to 3 of 3

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