Re: Multiple print in the same line
Hugo <[email protected]>
| Newsgroups | gmane.comp.security.detection.bro |
|---|---|
| Message-ID | <CAKq214nxoDmaPYYixyvdA7CqxKtPKieuATd91nD+vMwypgSZAA@mail.gmail.com> |
Thanks Jon. Using "cat" to pack them all in a string works. Hugo On Thu, Jun 13, 2019 at 10:42 AM Jon Siwek <[email protected]> wrote: > On Thu, Jun 13, 2019 at 10:15 AM Hugo <[email protected]> wrote: > > > For example, if I want to print all elements of a vector v1 in the same > line in a log file "log_name" with "print log_name, v1", all elements are > printed in the same line. But the character "[" and "]" at the beginning > and end of the line can be annoying if the log is used by other software > such as gnuplot. However, if I iterate each element in v1 and print it one > by one, I will not print all elements in the same line. Wonder whether we > have a workaround on this issue or not. > > You could up your own string (e.g. iterate over the vector and append > each element to a string, choosing your own delimiter or format stuff > via fmt()) and print the final version of that string. > > - Jon > > _______________________________________________ > Zeek mailing list > [email protected] > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/zeek > _______________________________________________ Zeek mailing list [email protected] http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/zeek