<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks Jon. Using &quot;cat&quot; to pack them all in a string works. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hugo</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 13, 2019 at 10:42 AM Jon Siwek &lt;<a href="mailto:jsiwek@corelight.com">jsiwek@corelight.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Jun 13, 2019 at 10:15 AM Hugo &lt;<a href="mailto:hugolin615@gmail.com" target="_blank">hugolin615@gmail.com</a>&gt; wrote:<br>
<br>
&gt; For example, if I want to print all elements of a vector v1 in the same line in a log file &quot;log_name&quot; with &quot;print log_name, v1&quot;, all elements are printed in the same line. But the character &quot;[&quot; and &quot;]&quot; 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.<br>
<br>
You could up your own string (e.g. iterate over the vector and append<br>
each element to a string, choosing your own delimiter or format stuff<br>
via fmt()) and print the final version of that string.<br>
<br>
- Jon<br>
<br>
_______________________________________________<br>
Zeek mailing list<br>
<a href="mailto:zeek@zeek.org" target="_blank">zeek@zeek.org</a><br>
<a href="http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/zeek" rel="noreferrer" target="_blank">http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/zeek</a><br>
</blockquote></div>