What do you guys recommend for converting pdb files to txt on Linux? Command line preferred. On Windows, I'm used to opening pdb files in iSilo and saving as txt, but I'm in the processing of moving to Linux.
I tried installing the p5-Palm Perl modules, and doing something like this:
Quote:
#!/usr/bin/perl
use Palm::Raw;
use Encode;
my $filename = $ARGV[0];
$pdb = new Palm::PDB;
$pdb->Load($filename);
foreach (@{$pdb->{records}}) {
print decode("iso-8859-1", $_->{data});
}
|
But the result is only partially human-readable. Maybe I just have the encoding wrong?
Thanks,
Ken