[Bro] Escape sequences in BRO (\n)

Patrick P Murphy pmurphy+bro at nrao.edu
Fri Aug 4 10:31:04 PDT 2017


On Fri, 4 Aug 2017 17:04:07 +0300, <adh.2234 at gmail.com> said:

>    local line = fmt("%s", "Hi \n all!");
>    print line;
>    will print the Hi \n all!

Shouldn't the \n be in the format specifier?  Eg.,

   local lines = fmt("%s\n%s\n", "First line", "Second line");

I don't think C or perl or other shell scripts with printf-like
capabilities would behave differently: the controls have to be in the
format specifier, not the data.

 - Pat


More information about the Bro mailing list