Products Applications Downloads Features Wiki forum Store

table Command

From Wiki077
(Redirected from Table)
Jump to: navigation, search


 table [-a r|c] [-d] [-r row_name] [-c col_name] path [row_index] [col_index] cell_value

This command will perform operations on a a row or column of a table. A "table" is one of the two forms of DATs (the other being simply lines of text). The Table DAT creates a table and the table commands can modify it. However it has been split into the separate commands tabinsert, tabdelete and tabcell and it is not recommeded to use table in new scripts.

Options

The row and column may be entered numerically or by name.

-a Append a row or column
-d Delete a row or column

Examples

Append a row:

table -a r /table1 

Append a column:

table -a c /table1 

Append a row, after row abc:

table -a r -f abc /table1 

Append a row, before row def:

table -a r -b def /table1 

Append a row named abc:

table -a r -r abc /table1 

Append a column named abc:

table -a c -c abc /table1 

Delete row named abc:

table -d -r abc /table1 

Delete column named abc:

table -d -c abc /table1 

Delete column 3:

table -d /table1 -1  3 

Delete row 2:

table -d /table1  2 -1 

Setting values:
Specify by name:

table -r April -c "Year 5" /sales/table1 330.25 

Specify by index:

table /animations/table1 3 5 do_jump

See Also

tabinsert, tabdelete, tabcell

Personal tools