I'm trying to write an AWK script to update a csv file with values for a new csv file, such that the details are updated for existing rows, but rows not present in the new csv are kept. I think it can be done by making an index with (NR == FNR), but I haven't managed to get anything to work yet. Here is so it is supposed to work:
old.csv
Name Size Date
==================
A 20mb 1/10
B 10mb 1/10
new.csv
Name Size Date
==================
A 24mb 2/10
C 30mb 2/10
(Some script, possibly AWK?)
output.csv
Name Size Date
==================
A 24mb 2/10
B 10mb 1/10
C 30mb 2/10
Any ideas on how to achieve this? Can possibly use something other than AWK, but it has to work on a minimal AIX setup
Thanks
-Ffor awk has to be set accordingly