[Bro] Escape sequences in BRO (\n)

Иван Раткин adh.2234 at gmail.com
Fri Aug 4 20:36:56 PDT 2017


My thanks! It works.

2017-08-04 23:44 GMT+03:00 Azoff, Justin S <jazoff at illinois.edu>:

> 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
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20170805/0743ba6f/attachment.html 


More information about the Bro mailing list