Relevance Trickery to manipulate a string

(imported topic written by ItsAvi)

Hi,

I’m using this relevance in QnA using local client evaluator:

Q:

values

of

headers

“Subject”

of

relevant fixlets

whose

((
exist

value

of

headers

“X-Fixlet-Source-Severity”

of

it
)

AND

((value

of

headers

“X-Fixlet-Source-Severity”

of

it

=

“Important”
)

OR

(value

of

headers

“X-Fixlet-Source-Severity”

of

it

=

“Critical”
))

AND

(value

of

headers

“Subject”

of

it

does not contain

“Microsoft Unsupported”
)

AND

(value

of

headers

“X-Fixlet-Source-Release-Date”

of

it

contains

“2014”
))

of

sites

whose

(name

of

it

=

“Enterprise Security”
)

A:
MS13-081: Vulnerabilities in Windows Kernel-Mode Drivers Could Allow Remote Code Execution - KB2862330 - Windows 7 SP1 (V2.0)

A:
MS14-001: Vulnerabilities in Microsoft Word and Office Web Apps Could Allow Remote Code Execution - Word 2010 SP1/SP2 (KB2863902)

A:
MS14-014: Vulnerability in Silverlight Could Allow Security Feature Bypass - Silverlight 5

this is good, but when I use it in action:
appendfile {values of headers “Subject” of relevant fixlets whose ((exist value of headers “X-Fixlet-Source-Severity” of it) AND ((value of headers “X-Fixlet-Source-Severity” of it = “Important”) OR (value of headers “X-Fixlet-Source-Severity” of it = “Critical”)) AND (value of headers “Subject” of it does not contain “Microsoft Unsupported”) AND (value of headers “X-Fixlet-Source-Release-Date” of it contains “2014”)) of sites whose (name of it = “Enterprise Security”)}

the appended file has all the results “squished” instead of having each answer have a line of it’s one, or any kind of separator between the items.

what can I do to have in the end a text file with the results as a structured text or anything I could further do relevance on in the vein of “lines of file” / "substrings separated by “;” of and finally I want to do intersection of sets of results (before and after a baseline has been executed etc.)

(imported comment written by jgstew)

See the appendfile example here:
http://bigfix.me/fixlet/details/3724

This relevance puts line breaks between the strings: ( concatenation “%0d%0a” of )

If you look at the Hex values of the ASCII table:

D is LineFeed, A is CarriageReturn, so %0d%0a is which is the Windows newline designation.

appendfile {concatenation “%0d%0a” of values of headers “Subject” of relevant fixlets whose ((exist value of headers “X-Fixlet-Source-Severity” of it) AND ((value of headers “X-Fixlet-Source-Severity” of it = “Important”) OR (value of headers “X-Fixlet-Source-Severity” of it = “Critical”)) AND (value of headers “Subject” of it does not contain “Microsoft Unsupported”) AND (value of headers “X-Fixlet-Source-Release-Date” of it contains “2014”)) of sites whose (name of it = “Enterprise Security”)}

(imported comment written by ItsAvi)

Thanks, and I have tried it and it looks great!