I'm working with a set of config files and I need a way to only cherry pick out certain entries when defining an Augeas lens.
How do I effectively state "if what Augeas sees isn't already listed specifically as an extraction it is OK to ignore"?
I was thinking a lens that explicitly doesn't match any other lens combined with a union might work but I have no idea on how the syntax would work.
My use case would be the following:
I'm parsing out some details (comments, script id, tag_summary, script_tag). There are other lines - logic statements, custom fields that only exist in certain cases and the like - that aren't structured and I can't readily write extractions for.
# Description: Unpassworded bash account
include("revisions-lib.inc");
tag_summary = "The account 'account' has no password set. An attacker may use it to gain further privileges on this system
This account was probably created by a backdoor installed by a fake Linux Redhat patch. See http://www.k-otik.com/news/FakeRedhatPatchAnalysis.txt";
if(description)
{
script_id(15583);
script_version("$Revision: 17 $");
script_tag(name:"last_modification", value:"$Date: 2013-10-27 15:01:43 +0100 (Sun, 27 Oct 2013) $");
}