next up previous contents index
Next: Conversion from sus Files Up: Conversion to sus Files Previous: text2sus   Contents   Index

table2sus

If the output produced by the experiment is already in a table-like format the sus filter table2sus might be used to convert it into sus format.

table2sus [<labels>] ...


Here, <labels> specify the column names to be extracted from the table. If no <labels> are given table2sus will try to recognize them automatically.

$\Rightarrow$ Tutorial 23:
sort-demo can produce a table-like output if the variable __TABLE_OUTPUT is defined during compilation. Recompile sort-demo with

make LFLAGS=-D__TABLE_OUTPUT clean sort-demo.


Then, create an output file out-tab.txt produced by some call of sort-demo. For example:
out-tab.txt

          n       T0       T1       T2       T3       type      r

       5000     0.15     0.00     0.16     0.10  ascending      1
       5000     0.16     0.22     0.40     0.10 descending      1
       5000     0.15     0.16     0.37     0.00     random     10

Convert this table into a sus file. Verify the result using the filter sus2text.

Solution:

table2sus < out-tab.txt | sus2text


next up previous contents index
Next: Conversion from sus Files Up: Conversion to sus Files Previous: text2sus   Contents   Index
Tobias Polzin 2002-11-18