Hi. I got a trouble with escape sequences in Bro.
When i write:
print “Next words must be in a new line \n New line”
or
print “\n”
\n will decoded in x0a or \n, but not decoded as a new.
So there is a question: how can i make a new line in strings? F.e. i read several strings of data and need to from string like
“hi,
its a new line
and it is too!”
but only thing i have is “hi,\nits a new line\nand it is too!”
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.