I am trying to delete all lines in a file that are not elements of my list. I have a standalone test posted here
https://gist.github.com/1946826 The test populates /tmp/testfile with 3 lines 1 2 3 If you add a line that isnt one of those I want it to be deleted. It seems that I am not doing my delete_lines regex correctly. I know there are other ways to do similar namely edit_defaults => empty for the specific test, but there might be instances I want to delete all lines in a file that dont match a pattern. Can someone help me figure out what I am doing wrong? -- Nick Anderson <n...@cmdln.org> _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine