csv.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:49:07 +0200
changeset 2230 9e6ad6607a9e
parent 1912 8b81a8f0f692
permissions -rw-r--r--
Fixed formatting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1621
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
.. -*- coding: utf-8; -*-
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
======
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
 CSV.
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
======
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1621
diff changeset
     7
   :local:
1621
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
DBF to CSV.
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
===========
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
::
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
  $ sudo aptitude install libdbd-xbase-perl
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
  $ dbf_dump --fs="=" BSPR.DBF > BSPR.csv
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
Seems that ``dbf_dump`` can't quote fields, so use rare char as separator!
a91269720c48 DBF to CSV.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17