- 论坛徽章:
- 0
|
如下6行文本,如何插入特定字段"specail{test}"
要求在 以包含key-word 为关键字的 ,之后第一个以add 为开始; 在add {} 的结尾位置 插入特定字段
remote dc-123 { file("/aa/key-word/aa" owner("a") group("b") perm (0640)); };
filter f_dc-123 { host("dc-123") and not match("xyz" value(MSG)); };
add { source(net); filter(f_dc-123); remote(dc-123); }; special {test}
remote dc-124 { file("/aa/non-keyword/aa" owner("a") group("b") perm (0640)); };
filter f_dc-124 { host("dc-124") and not match("xyz" value(MSG)); };
add { source(net); filter(f_dc-124); remote(dc-124); }; |
|