我有fileA,fileB数据如下图
fileA
,,"user1","email"
,,"user2","email"
,,"user3","email"
,,"user4","email"
fileB
,,user2,location
,,user4,location
,,user1,location
,,user3,location
我想搜索fileA用户fileB并仅获取位置并将该位置添加到 fileA/或其他文件
输出期望像
,,"user1","email",location
,,"user2","email",location
,,"user3","email",location
,,"user4","email",location
我正在尝试逻辑,使用 while 获取fileA用户名并搜索它fileB以获取位置。但是无法将其添加到fileA后面
非常感谢您的帮助