我有兩個屬性文件,我想用文件B中的任何匹配鍵/值條目替換文件A中的鍵/值對。文件A將具有比文件B更多的條目 - 預計這兩個文件不會有完全相同的條目數量。此外,文件B可能具有不包含在文件A.屬性文件搜索和替換
作爲一個例子條目:
File A
"GB" = "United Kingdom";
"SE" = "Sweden";
"BR" = "Brazil";
"FR" = "France";
"ES" = "Spain";
"DE" = "Germany";
File B
"GB" = "Regno Unito";
"SE" = "Svezia";
"BR" = "Brasile";
"BR" = "Brasile";
"CL" = "Cile";
Desired Result
"GB" = "Regno Unito";
"SE" = "Svezia";
"BR" = "Brasile";
"FR" = "France";
"ES" = "Spain";
"DE" = "Germany";
"CL" = "Cile";
是否可以執行該搜索和使用bash更換?
感謝,
肖恩
我自己並沒有真正嘗試過一種解決方案。只是在這個問題上尋求指導。 – seanoshea