Examples

All examples assume the jar is at "c:\pairwise\pairwise.jar" and your source folder at "c:\tests\pairwise". Examples also assume the output file already exists and identifies the scenario when renaming occurs.

Example from source without output

This example assumes you are currently in the source folder at c:\tests\pairwise\. If the output file exists during generation, "_output-99" will be added to the output filename

java -jar c:\pairwise\pairwise.jar abc.csv

  • reads from c:\tests\pairwise\abc.csv

  • saves to c:\tests\pairwise\abc-output.csv.

  • or saves to c:\tests\pairwise\abc-output.csv after renaming existing to
    c:\tmp\pairwise\abc-output (copy 12).csv

Example from source with relative folder

This example assumes you are currently in the source folder at c:\tests\pairwise\.

java -jar c:\pairwise\pairwise.jar abc.csv output

  • reads from c:\tmp\pairwise\abc.csv

  • saves to c:\tmp\pairwise\output\abc.csv

  • or saves to c:\tests\pairwise\abc.csv after renaming existing to
    c:\tmp\pairwise\abc (copy 12).csv

Example from source with explicit file

This example assumes you are currently in the source folder at c:\tests\pairwise\.

java -jar c:\pairwise\pairwise.jar c:\work\abc.csv output\output.csv

  • reads from c:\tests\abc.csv

  • saves to c:\tests\output\output.csv and overwrites if it already exists

Example from runtime folder

This example assumes you are in the executable (jar) folder at c:\pairwise\. This is the same as above except you must explicity path the jar source files instead of the jar file.

Example from runtime with all options

java -jar pairwise.jar c:\tests\pairwise\abc.csv output -delimiter="|" -charset="ISO-8559-1"

  • reads from c:\tests\pairwise\abc.csv which had to be absolute pathed

  • saves to c:\tests\pairwise\output\abc.csv

  • if it already exists, saves to c:\tests\pairwise\output\abc (copy 1).csv