Search Results

Search: Posts Made By: dan139
2,909
Posted By Aia
Perhaps, you can run the opposite to diagnose the...
Perhaps, you can run the opposite to diagnose the problem:
awk -F ',' 'FNR==NR {zip[$1]; next} !($2 in zip)' file2 file1
That will show the lines that did not make it, from file1. After that, you...
2,909
Posted By Don Cragun
If you're trying to match on both of the fields...
If you're trying to match on both of the fields that are present in file2, you might want to try something more like:
awk -F ',' 'FNR==NR {zip_parent[$1,$2]; next} ($2,$4) in zip_parent' file2 file1...
2,909
Posted By Aia
Hi, dan139 It would be much helpful if you...
Hi, dan139

It would be much helpful if you were to give a few more lines from file1 and file2, in that way we can see what's the real structure of the files, which it will make a difference. Also,...
Showing results 1 to 3 of 3

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