COOPY » Guide  version 0.6.5
bridge example for ssdiff
Examples for ssdiff

command

In this example, we compare two tables as follows:

 ssdiff broken_bridges.csv bridges.csv
 ssdiff --format hilite --output diff.xls broken_bridges.csv bridges.csv

The two tables are:

The result of comparing the tables are:

broken_bridges.csv

bridgedesignerlength
BrooklynJ. A. Roebling1595
WilliamsburgD. Duck1600
QueensboroughPalmer & Hornbostel1182
TriboroughO. H. Ammann1380,383
Bronx WhitestoneO. H. Ammann2300
Throgs NeckO. H. Ammann1800
George WashingtonO. H. Ammann3500
SpamspanS. Spamington10000

bridges.csv

bridgedesignerlength
BrooklynJ. A. Roebling1595
ManhattanG. Lindenthal1470
WilliamsburgL. L. Buck1600
QueensboroughPalmer & Hornbostel1182
TriboroughO. H. Ammann1380,383
Bronx WhitestoneO. H. Ammann2300
Throgs NeckO. H. Ammann1800
George WashingtonO. H. Ammann3500

tdiff output

# tdiff version 0.3
# --- /home/paulfitz/cvs/coopy/tests/broken_bridges.csv
# +++ /home/paulfitz/cvs/coopy/tests/bridges.csv
* |bridge=Brooklyn|
+ |bridge:->Manhattan|designer:->G. Lindenthal|length:->1470|
= |bridge=Williamsburg|designer=D. Duck->L. L. Buck|
- |bridge=Spamspan|

highlighter output

@ bridge designer length
Brooklyn J. A. Roebling 1595
+++ Manhattan G. Lindenthal 1470
-> Williamsburg D. Duck->L. L. Buck 1600
Queensborough Palmer & Hornbostel 1182
Triborough O. H. Ammann 1380,383
... ... ... ...
Throgs Neck O. H. Ammann 1800
George Washington O. H. Ammann 3500
--- Spamspan S. Spamington 10000
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines