Author image Clotho Advanced Media
and 1 contributors


dbf2csv - Convert dBASE DBF files to text files


dbf2csv [options] [file ...]

   -h --help           verbose help message
   -i --info           just print header metadata and no rows
   -R --repair         repair any header corruption
   -H --header         output column headers
   -f --field=<char>   set the field separator character
   -e --enclose=<char> set the field enclosing character
   -E --escape=<char>  set the escape character
   -r --record=<char>  set the record separator character
   -o --outfile=<file> write output to <file> (overrides -x)
   -x --outext=<ext>   use <ext> as output extension

   -R  (false)
   -H  (false)
   -f  ,
   -e  "
   -E  \
   -r  \n
   -o <infile>.txt
   -x .txt

 dbf2csv understands the following special characters in its arguments:
   \r  carriage return
   \n  newline
   \t  tab
   \\  backslash


One or more files specified on the command line (or from standard input if none specified, or - is specified) are converted from dBASE DBF format to text delimited files. Delimiters and escape characters can be indicated on the command line. Output is typically written to <file>.txt, given input <file>.dbf. The output extension can be changed with the --outext parameter. Alternatively, an output file can be manually specified via the -o argument. If --outfile is -, output will be written to standard output.

If --info is specified, header metadata is printed to standard output for all specified DBF files. All other flags are ignored and no row data are output.




Chris Dolan, Clotho Advanced Media,