function like printf,in Bro language

> printf("%s",demux_dir);
[...]
> Is there a function doing what does "printf" do ,in Bro language?

There is "fmt" which builds a string in a printf-like way (see the
"predefined functions" section in Bro's manual for details).

But for the case above, you don't need it actually:

    print demux_dir;

Robin

I want to put it to the screen. fmt can not do that . What should I do ?

>There is "fmt" which builds a string in a printf-like way (see the
>"predefined functions" section in Bro's manual for details).

I want to put it to the screen. fmt can not do that . What should I do ?

Either of following two ways will do:

print demux_dir;

or

print fmt("%s", demux_dir);

Ruoming