Closed nsjarvis closed 4 months ago
dump command is just an alias to cat command. 'cat' has a lot of flags to control what you would like to have:
ccdb help cat
Show data values for assignment.
Usage:
cat <request or table path>
cat --id <assignment_id> #Where assignment_id provided by 'vers <table path>' command
Formatting flags:
-c or --comments - Show comments on/off
-nc or --no-comments
-ph or --horizontal - Print table horizontally
-pa or --vertical - Print table vertically
(If no '--horizontal' or '--vertical' flag is given, the layout of table is determined automatically:
vertical layout if table has only 1 row and more than 3 columns, horizontal otherwise)
-b or --borders - Switch show borders on of off
-nb or --no-borders
-h or --header - Show header on/off
-nh or --no-header
-t or --time - Show time
-nt or --no-time
Examples:
> cat /test/test_vars/test_table #print latest data for test_table
> cat /test/test_vars/test_table::subtest #print latest data in subtest variation
> cat /test/test_vars/test_table:::2012-08 #print data latest for august 2012
See also 'dump' command which is 'cat' formatted to save data to files. 'help dump'
To be exact dump is:
cat --no-borders --no-header --comments --time --horizontal
you need
cat --no-borders --no-header --no-comments --no-time --horizontal
I'm not sure what is meant about the spaces.
Please could you make a clean version of the dump command that does not include a comment as the first line, and does not include spaces on subsequent lines. This would enable the result of ccdb dump to be compared with a file that might have been used to create the ccdb table, without writing extra scripts to clean up the ccdb dump output.