[Bro] Escape sequences in BRO (\n)
Azoff, Justin S
jazoff at illinois.edu
Fri Aug 4 13:44:41 PDT 2017
Bro escapes strings that are printed by default. You need to open a file(or stdout) in raw mode in order for it to output strings as-is
global myfile = open("-");
enable_raw_output(myfile);
print myfile, "hello\nworld";
close(myfile);
or
global myfile = open("-") &raw_output;
print myfile, "hello\nworld";
close(my file);
--
- Justin Azoff
> On Aug 4, 2017, at 4:28 PM, Иван Раткин <adh.2234 at gmail.com> wrote:
>
> Well, the printed line for this sample is:
>
> First line\x0aSecond line\x0a
>
More information about the Bro
mailing list