Search Results

Search: Posts Made By: Don Cragun
2,121
Posted By Don Cragun
So maybe something more like: awk ' BEGIN...
So maybe something more like:
awk '
BEGIN { FS = OFS = ","
}
FNR == NR {
car[$1] = $2
next
}
$2 in car {
$4 = car[$2]
}
1' b.csv a.csv
would come closer to what you need???
2,121
Posted By Don Cragun
If you choose not to show us sample data that...
If you choose not to show us sample data that reflects the contents of your actual files, the likelihood of getting a suggestion that will work for you diminishes greatly. If what you are given as...
2,121
Posted By Don Cragun
You say that the input files are CSVs, but that...
You say that the input files are CSVs, but that usually means that a single character is used to separate fields in those files. Instead of that, the files you have shown us have varying numbers of...
Showing results 1 to 3 of 3

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