Forum: CFEngine Help Subject: Re: How to remove a string from an slist based off of a class. Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,23646,23659#msg-23659
Small correction: vars: "test_list" slist => {"one", "two", "three" }; linux:: "linux_slist" slist => grep("(?!^two$).*","test_list"); This will only exclude the word "two" and not "twox". _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine