如何合并两个属性文件,例如使用Shell脚本:- 如果我有两个类似的属性文件
first.properties
/test/file="anish"
/test/version=3.0
second.properties
/test/author=nath
/test/version=2.0
如果我将first.properties合并到second.properties中,则共有的属性应该从first.properties中获取,因此我的输出应该如下所示
final.properties
/test/file="anish"
/test/version=3.0
/test/author=nath