Forum: CFEngine Help Subject: Re: How to add to line with field_edits? Author: marc Link to topic: https://cfengine.com/forum/read.php?3,22981,22997#msg-22997
Hi Ben Has just played around with you suggestion. And it almost do what I want. The only thing is that it appends to the list. In wanna replace, if the string is not in the slist, i don't want it in my file. slist = "a" "b" "c" => uri a b c If I change the slist slist = "a" "b" "z" => uri a b z Your example will make this after changing the slist: uri a b c z And if I change the method in "field_operation" to "set"(replace). It just keeps replacing the string in 2. position. Leaving me with: uri z Any suggestion? _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
