On Wed, Aug 06, 2003 at 11:59:03AM -0500, [EMAIL PROTECTED] wrote:
> Hey all...
>
> Anyone have any fancy-smancy UNIX utilities that dump out ONLY the
> records from a pdb? As in, without header info and all that fun stuff...
You don't specify how you want the data "dumped", but this should get
you started.
------------------------------------------------------------------------
#! /usr/bin/perl
# Copyright (c) 2002 PDA Verticals Corp.
# All rights reserved.
#
# $Id: dump-pdb,v 1.2 2003/05/21 16:29:16 dave Exp $
# $Source: /pda/cvs/palm/lib/Palm++/bin/dump-pdb,v $
use strict;
use Palm::PDB;
use Palm::Raw;
use Data::Dumper;
Palm::PDB::RegisterPDBHandlers("Palm::Raw", "");
Palm::PDB::RegisterPRCHandlers("Palm::Raw", "");
my $pdb = Palm::PDB->new;
$pdb->Load($ARGV[0]);
print Dumper($pdb->{records});
------------------------------------------------------------------------
--
Dave Carrigan
Seattle, WA, USA
[EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL
Dave is currently listening to Angelic Upstarts - Teenage Warning (Kids on the Street
(the Best of))
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/