Re: Search and replace
"'Nick Anderson' via help-cfengine" <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
thierry thunot <[email protected]> writes: Hi Thierry, If the line you are replacing exists in the file mutliple times and you only want to target one of them, then I think you will need to use `select_region' so that you are editing the one you want. <https://docs.cfengine.com/docs/3.18/reference-promise-types-files-edit_line.html#select_region> Is this file pretty unique per host? If it's not, I would probably recommend full file management like a mustache template or a copy_from. -- You received this message because you are subscribed to the Google Groups "help-cfengine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/871r81yikx.fsf%40northern.tech. -- Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech -- You received this message because you are subscribed to the Google Groups "help-cfengine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/871r81yikx.fsf%40northern.tech.