DBF_DUMP(1p)

πŸ“¦
version 1.08 Β· 2 versions
  • 1.08 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.08 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’Ύ DBF_DUMP(1p) β€” dump the record of the dbf file

okay bestie, gather round πŸ’– this is dbf_dump, a little Perl script from the User Contributed Perl Documentation corner of your manual pages (section 1p, iykyk), and it is literally here to spill the entire contents of a dbf file to your terminal. no cap.


✨ FORMAT ✨

dbf_dump [options] files

where options are

  • --rs β€” output record separator (default newline)
  • --fs β€” output field separator (default colon)
  • --fields β€” comma separated list of fields to print (default all)
  • --undef β€” string to print for NULL values (default empty)
  • --memofile β€” specifies unstandard name of attached memo file
  • --memosep β€” separator for dBase III dbt's (default \x1a\x1a)
  • --nomemo β€” do not try to read the memo (dbt/fpt) file
  • --info β€” print info about the file and fields; with additional --SQL parameter, outputs the SQL create table
  • --version β€” print version of the XBase library
  • --table β€” output in nice table format (only available when Data::ShowTable is installed, overrides rs and fs)
heads up queen: --table is a whole vibe but it's ✨ conditional ✨ β€” if Data::ShowTable isn't installed, it's not available. and when it is around, it overrides rs and fs, so don't fight it.

🌸 SYNOPSIS 🌸

dbf_dump -fields id,msg table.dbf
dbf_dump -fs=' : ' table
dbf_dump --nomemo file.dbf

ssh user@host 'cat file.dbf.gz' | gunzip - | dbf_dump -

look at that last one πŸ‘‘ piping a gzipped dbf straight over ssh into dbf_dump -?? that's main character energy fr fr.


πŸ¦‹ DESCRIPTION πŸ¦‹

dbf_dump prints to standard output the content of dbf files listed. by default? it prints all fields, separated by colons, one record on a line. that's the default vibe πŸ’…

the output record and column separators can be changed by switches on the command line β€” you're in control, bestie. you can also ask only for some fields to be printed, so if you only care about two columns out of forty, you get to say so.

the content of associated memo files (dbf, fpt) is printed for memo fields, unless you use the --nomemo option. so like, memo content shows up by default, and --nomemo is you saying "not today πŸ™ˆ".

you can specify reading the standard input by putting dash (-) instead of file name. yes, the humble dash. iconic.


πŸŽ€ AVAILABLE FROM πŸŽ€

http://www.adelton.com/perl/DBD-XBase/


πŸ’œ AUTHOR πŸ’œ

(c) 1998--2011 Jan Pazdziora.


🌈 SEE ALSO 🌈

perl(1); XBase(3pm); index_dump(1p)


and that's the whole page, bestie 🫢 this was perl v5.34.0, dated 2022-06-13 β€” so if you're reading this way later, hi, you're a time traveler, slay πŸ’…βœ¨

πŸ“¦ where this page comes from