COOPY » Guide
version 0.6.5
|
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:
NAME | DIGIT |
one | 1 |
two | 2 |
three | 3 |
four | 4 |
five | 5 |
NAME | DIGIT | FRENCH | UNARY |
one | 1 | un | . |
two | 2 | deux | .. |
three | 3 | trois | ... |
four | 4 | quatre | .... |
five | 5 | cinq | ..... |
# 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|*->.....|
! | +++ | +++ | |||
@-> | 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->..... |