基本上(开玩笑地说)我有一个格式如下的 csv 文件:
"ID","Name","Phone Number"
"00001","Ricky Stallman","07771111111"
"00003","Harrison Ford","07701010101"
"00003","Harrison Ford",""
"00008","Bob Geldof","07712121212"
'Harrison Ford' 条目再次出现在我的 csv 中,旁边没有数字(这只是数据令人讨厌地呈现给我的方式)。我需要 csv 像这样读取(即,将上面行中的数字复制到下面的字段中):
"ID","Name","Phone Number"
"00001","Ricky Stallman","07771111111"
"00003","Harrison Ford","07701010101"
"00003","Harrison Ford","07701010101"
"00008","Bob Geldof","07712121212"
如果有人有建议,最好在 Bash 中?