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

command

In this example, we apply a patch as follows:

sspatch broken_bridges.csv patch.tdiff

The output, input, and patch are:

output

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

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

patch.tdiff

# 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|
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines