DBFDUMP(1)
β¨ DBFDUMP(1) β¨
okay so bestie, this is dbfdump from shplib (shapelib, the icon itself) and it does one job and does it gorgeously π
πΈ NAME πΈ
dbfdump β dumps the content of a xBase file to the terminal π«Ά
β¨ SYNOPSIS β¨
dbfdump [-h] [-r] [-m] xbase_file
π DESCRIPTION π
So it dumps the contents of xbase_file straight to standard output, no cap. The first line is all the field names that show up in xbase_file, and then every line after that? That's the field values of a record. Literally one record per line, main character energy β¨
Field names AND values get padded with spaces so everything lines up to their field widths β it's giving organized, it's giving tidy π
And empty fields? Those print as the string (NULL). Noted. π
π OPTIONS π
-hβ output header info (field descriptions).
Prints the column field definitions before the other output. Every field definition is a line that looks like:
Field: index, Type=type, Title=`name', Width=width, Decimals=precision
where index is the zero offset column number of the field (yes, zero, we start at 0 around here π); type tells you the datatype of the field value and it's either "Integer", "Real" or "String"; name is the field's name; width is how many bytes are reserved for that field's value; and precision is the number of decimal places of precision for "Real" type fields β and it's zero for "Integer" and "String" type fields. periodt.
-rβ output raw field info, numeric values not reformatted.
Prints the exact bytes occurring in xbase_file for field values, and it suppresses printing (NULL) for empty values. no filler, just vibes π₯
-mβ output one line per field.
Prints each record in multiline format, separated by empty lines. The first line of a record tells you the number of the record like:
Records: record_index
where record_index is the zero offset number of the record in the file β then every field of the record shows up on its own line in this format:
name: value
- xbase_file β the name of an existing xBase file. like, you gotta actually have one bestie π
π EXAMPLE π
dbfdump -h testbase.dbf
assuming that testbase.dbf has 1 record (inserted by other example using dbfadd), this command line will produce the following output:
Field 0: Type=String, Title='NAME', Width=20, Decimals=0
Field 1: Type=Double, Title='AREA', Width=9, Decimals=3
Field 2: Type=Double, Title='VALUE', Width=9, Decimals=2
NAME AREA VALUE REGION1 25.656 150.22
iconic, honestly. it ate π
π¦ EXIT STATUS π¦
0β Successful program execution. slay π1β Missing xbase_file argument. you forgot the file bestie π2β Failed to open xbase_file.3β There are no fields in xbase_file. empty. void. nothing. π
π DIAGNOSTICS π
The following diagnostics may be issued on stdout:
DBFOpen(xbase_file,"r") failed.
There are no fields in this table!
π AUTHOR π
dbfdump is part of shapelib, maintained by Frank Warmerdam. This guide was created by Eduardo Patoo Kanegae and converted to manpage by Johan Van de Wauw. It was further enhanced with the man page written by Joonas Pihlaja (jpihlaja@cc.helsinki.fi). shoutout to the whole squad π«Ά
π BUGS π
Unless the -r option is given, values in numeric fields that overflow the int or double types of the C language are printed as plus or minus a huge number. For integer fields the huge value is HUGE_VALL from
bestie that sentence just ends there, I'm not making it up, that's literally where it stops π
β SEE ALSO β
dbfadd(1), dbfcat(1), dbfcreate(1), dbfinfo(1), shpadd(1), shpcat(1), shpcentrd(1), shpcreate(1), shpdump(1), shpdxf(1), shpfix(1), shpinfo(1), shpproj(1), shprewind(1), shptest(1)
k that's the whole page bestie, go dump some xBase files π
this was the shplib version, dated March 2026 β mwah, bye πβ¨
π¦ where this page comes from
- ubuntu stonking: shapelib 1.6.3-1 Β· MIT OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms