Forum: CFEngine Help Subject: Re: Reading lines into an array only if class matches Author: matter Link to topic: https://cfengine.com/forum/read.php?3,26231,26241#msg-26241
Depending on what class you are specifically you are looking for, perhaps a module would work better. Simple solution to grep the file with a module for the class, build a list in the module (echo "@excludelist = { \"a\",\"b\" };" ). Trick is to match the class without using a structure. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine