COOPY » Guide  version 0.6.5
insert column example for ssdiff
Examples for ssdiff

command

In this example, we compare two tables as follows:

 ssdiff named_numbers.csv named_numbers_wide.csv
 ssdiff --format hilite --output diff.xls named_numbers.csv named_numbers_wide.csv

The two tables are:

The result of comparing the tables are:

named_numbers.csv

NAMEDIGIT
one1
two2
three3
four4
five5

named_numbers_wide.csv

NAMEDIGITFRENCHUNARY
one1un.
two2deux..
three3trois...
four4quatre....
five5cinq.....

tdiff output

# tdiff version 0.3
# --- /home/paulfitz/cvs/coopy/tests/named_numbers.csv
# +++ /home/paulfitz/cvs/coopy/tests/named_numbers_wide.csv
@@ |NAME|DIGIT|
@+ FRENCH |NAME|DIGIT|FRENCH|
@+ UNARY |NAME|DIGIT|FRENCH|UNARY|
@ |NAME=|FRENCH=|UNARY=|
= |NAME|*->FRENCH|*->UNARY|
= |one|*->un|*->.|
= |two|*->deux|*->..|
= |three|*->trois|*->...|
= |four|*->quatre|*->....|
= |five|*->cinq|*->.....|

highlighter output

! +++ +++
@-> NAME DIGIT NULL->FRENCH NULL->UNARY
-> one 1 NULL->un NULL->.
-> two 2 NULL->deux NULL->..
-> three 3 NULL->trois NULL->...
-> four 4 NULL->quatre NULL->....
-> five 5 NULL->cinq NULL->.....
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines