CFEngine Help: Re: How to remove a string from an slist based off of a class.

2011-11-29 Thread no-reply
Forum: CFEngine Help Subject: Re: How to remove a string from an slist based off of a class. Author: msvob...@linkedin.com Link to topic: https://cfengine.com/forum/read.php?3,23646,24104#msg-24104 +1 The negative lookahead using grep is counter intuitive. I think we need three new functions.

Re: CFEngine Help: Re: How to remove a string from an slist based off of a class.

2011-11-29 Thread Ted Zlatanov
On Mon, 31 Oct 2011 10:09:37 -0500 Ted Zlatanov wrote: TZ> On Fri, 30 Sep 2011 19:00:28 +0200 (CEST) neilhwatson wrote: n> No, use a negative regular expression. Match things that are not 'Two'. TZ> There are regular expressions that can't be practically inverted, and TZ> even simple ones loo

Re: CFEngine Help: Re: How to remove a string from an slist based off of a class.

2011-10-31 Thread Ted Zlatanov
On Fri, 30 Sep 2011 19:00:28 +0200 (CEST) neilhwatson wrote: n> No, use a negative regular expression. Match things that are not 'Two'. There are regular expressions that can't be practically inverted, and even simple ones look awkward. Could grep() support a "-v" flag? Ted __

CFEngine Help: Re: How to remove a string from an slist based off of a class.

2011-09-30 Thread no-reply
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_slis

CFEngine Help: Re: How to remove a string from an slist based off of a class.

2011-09-30 Thread no-reply
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,23655#msg-23655 err...sorry "Neil" ___ Help-cfengine mailing list Help-cfengine@cfengine

CFEngine Help: Re: How to remove a string from an slist based off of a class.

2011-09-30 Thread no-reply
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,23654#msg-23654 Why do you want a new function when this is exactly what grep does? As neal said , you need to use a negative lokah

CFEngine Help: Re: How to remove a string from an slist based off of a class.

2011-09-30 Thread no-reply
Forum: CFEngine Help Subject: Re: How to remove a string from an slist based off of a class. Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23646,23653#msg-23653 No, use a negative regular expression. Match things that are not 'Two'.

CFEngine Help: Re: How to remove a string from an slist based off of a class.

2011-09-30 Thread no-reply
Forum: CFEngine Help Subject: Re: How to remove a string from an slist based off of a class. Author: msvob...@linkedin.com Link to topic: https://cfengine.com/forum/read.php?3,23646,23651#msg-23651 Hm. Thanks for the suggestion. So I would have to grep through all of the strings that I wanted

CFEngine Help: Re: How to remove a string from an slist based off of a class.

2011-09-30 Thread no-reply
Forum: CFEngine Help Subject: Re: How to remove a string from an slist based off of a class. Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23646,23649#msg-23649 The grep function takes a regex which you could negate http://cfengine.com/manuals/cf3-reference.html#Function