STDOUT Target - minersoft/miner GitHub Wiki

To illustrate formatting capabilities of STDOUT please consider following query

>>> ITERATE i in range(15) | SELECT i, 10**i as i_default, 10**i as i_bytes,  0.1*i as i_percent, 0x05050505 + i as ip, (1<<32)-16+i as i_hex, (1<<64)-16+i as i_hex64, 0.1**i as i_float, 10**i as i_int  |
 STDOUT i_bytes="B" i_percent="%" ip="ip" i_hex="x" i_hex64="xx" i_float=8.3 i_int="i"

Which produces following result

================================================================================================================
i       , i_default, i_bytes , i_percent, ip              , i_hex     , i_hex64           , i_float , i_int
----------------------------------------------------------------------------------------------------------------
       0,         1,       1B,      0.0%, 5.5.5.5         , 0xfffffff0, 0xfffffffffffffff0,   1.0000,        1
       1,        10,      10B,     10.0%, 5.5.5.6         , 0xfffffff1, 0xfffffffffffffff1,   0.1000,       10
       2,       100,     100B,     20.0%, 5.5.5.7         , 0xfffffff2, 0xfffffffffffffff2,   0.0100,      100
       3,      1000,    1000B,     30.0%, 5.5.5.8         , 0xfffffff3, 0xfffffffffffffff3,   0.0010,     1000
       4,    10.00K,    9.8KB,     40.0%, 5.5.5.9         , 0xfffffff4, 0xfffffffffffffff4,   0.0001,    10000
       5,   100.00K,   97.7KB,     50.0%, 5.5.5.10        , 0xfffffff5, 0xfffffffffffffff5,   0.0000,   100000
       6,  1000.00K,  976.6KB,     60.0%, 5.5.5.11        , 0xfffffff6, 0xfffffffffffffff6,   0.0000,  1000000
       7,    10.00M,    9.5MB,     70.0%, 5.5.5.12        , 0xfffffff7, 0xfffffffffffffff7,   0.0000, 10000000
       8,   100.00M,   95.4MB,     80.0%, 5.5.5.13        , 0xfffffff8, 0xfffffffffffffff8,   0.0000, 100000000
       9,  1000.00M,  953.7MB,     90.0%, 5.5.5.14        , 0xfffffff9, 0xfffffffffffffff9,   0.0000, 1000000000
      10,    10.00G,    9.3GB,    100.0%, 5.5.5.15        , 0xfffffffa, 0xfffffffffffffffa,   0.0000, 10000000000
      11,   100.00G,   93.1GB,    110.0%, 5.5.5.16        , 0xfffffffb, 0xfffffffffffffffb,   0.0000, 100000000000
      12,  1000.00G,  931.3GB,    120.0%, 5.5.5.17        , 0xfffffffc, 0xfffffffffffffffc,   0.0000, 1000000000000
      13,    10.00T,    9.1TB,    130.0%, 5.5.5.18        , 0xfffffffd, 0xfffffffffffffffd,   0.0000, 10000000000000
      14,   100.00T,   90.9TB,    140.0%, 5.5.5.19        , 0xfffffffe, 0xfffffffffffffffe,   0.0000, 100000000000000

Additional types: “T” – gmt time in seconds “t” – time presented as hh:mm:ss 10 - fields length