Menu

Option_H_Example

Larry Jordan

Option -H

Insert the first csv row into the header.

    Input data.csv

    Date, Task, Minutes
    2011-06-14, "Sweep floor", 30
    2011-06-15, "Count beans", 60
    2011-07-10, "Pickup chips", 45
    

    Template template.odt

    H1H2H3
    2000-01-01Dummy0

    Output output.odt

    DateTaskMinutes
    2011-06-12Sweep floor30
    2011-06-15Count Beans60
    2011-07-10Pickup chips45

    The first two rows of the template table are ingored, the header is the next row.

    Command

    csv2odf -H data.csv template.odt output.odt
    

    Related

    Wiki: Program_Options_by_Example