0

我想同步两个文件的内容,File1 & File2

这两个文件的共同内容很少。

  • File2 是主文件。
  • File1 是普通文件。

文件2:

# cat File2

    [default]
host = XXXX

<i>[monitor:///server/dev-01/log/*.log*]</i>

index = main

disabled = false

sourcetype = serverlog

文件1:

# cat File1

    [default]
host = XXXX

<i>[monitor:///server/cat-01/log/*.log*]</i>

index = second

disabled = false

sourcetype = server-logs

必需的:

# cat File2


    [default]
host = XXXX

<i>[monitor:///server/dev-01/log/*.log*]</i>

index = main

disabled = false

sourcetype = serverlog

<i>[monitor:///server/cat-01/log/*.log*]</i>

index = second

disabled = false

sourcetype = server-logs
4

0 回答 0