table export command

Syntax

table s export sfile <keyword> ...

Primary keywords:

append    truncate    csv

The contents of the specified table are output to file sfile, with default file extension “.tab”. The format of the output is compatible with the table import command. The output assumes that the x-increment is irregular so that the values are output as (x,y) pairs. If the file s already exists, data will be appended to the end of the file (default behavior or when the optional keyword append is given). The file will be overwritten if the optional keyword truncate is used. In addition, the format can be changed to comma-separated value format with the csv keyword.

append

Data appended to the end of the file. append is the default option.

truncate

Any previously existing file is replaced.

csv

The exported table is formatted in standard CSV format, for easy import into other applications.