[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GWhere-discussion] re:What format is the catalog file? (Perl Whore

From: Perl Whore
Subject: Re: [GWhere-discussion] re:What format is the catalog file? (Perl Whore)
Date: Tue, 1 Dec 2009 07:13:36 +0530

Thanks for the info. I read it with perl, converted to hex and removed
the header and was able to read the rest as text.

Incase anyone else is trying to do the same thing, you can use the
following code.

my $read = '';

open CATALOG, '<','file.ctg';
$read .= $_ while <CATALOG>;
close CATALOG;

$read = unpack 'h*',$read;
$read =~ s/f1b880000000000000b00004f7fb08//;
$read = pack 'h*',$read;

print $read;

- rot

On Sat, Nov 28, 2009 at 12:30 AM, jagerhans <address@hidden> wrote:
> the  'file' command reports that movies-mp3_catalog-latest.ctg is:  gzip
> compressed data, from Unix, max speed
> but this info is pitifully wrong since apart from the header 1f 0b 08 00 it
> looks pretty much like an ascii text file. i think that you can't access it
> because of file permissions. check if it's readable or else do chmod 744 on
> the file and open it with vi .
> _______________________________________________
> GWhere-discussion mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]