Forum: Cfengine Help
Subject: Re: search and replace help
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,20275,20276#msg-20276

Don't you want to add .* right behind HISTSIZE=(?!${histsize})?

edit_line => search_replace(
             "HISTSIZE=(?!${histsize}).*",
             "HISTSIZE=${histsize}");


Cheers,
--Nakarin

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to