Am 2008-09-24 15:20:03, schrieb Carol Walter:
> Hello,
>
> Does anyone know what the format of hex characters for postgres are?
> I'm trying to create files that contain a 0x55. It looks to me like
> it should require a delimiter of some sort between the characters. I
> don't know how pos
I can't resist one-liner games.
$ perl -e 'print "U"x(256*1024)' >Us
or, if you specifically want to specify hex:
$ perl -e 'print chr(hex(55))x(256*1024)' >Us
-Reece
--
Reece Hart, http://harts.net/reece/, GPG:0x25EC91A0
: Steve Crawford
Cc: Scott Marlowe; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Hex representation
Well, it was a bit convoluted, but I created the file with Excel,
filling the right number of cells with \x55. This worked too. The
script wouldn't run for me. I got an error about a
-admin@postgresql.org
Subject: Re: [ADMIN] Hex representation
Well, it was a bit convoluted, but I created the file with Excel,
filling the right number of cells with \x55. This worked too. The
script wouldn't run for me. I got an error about a "bad interpreter".
Carol
On Sep
ent: Thu 9/25/2008 10:40 AM
To: Scott Marlowe
Cc: Carol Walter; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Hex representation
Scott Marlowe wrote:
> I used this very simple little php script to make this
>
> filename: mk55:
> #!/usr/bin/php -q
> for ($i=0;$i<2
Well, it was a bit convoluted, but I created the file with Excel,
filling the right number of cells with \x55. This worked too. The
script wouldn't run for me. I got an error about a "bad interpreter".
Carol
On Sep 25, 2008, at 1:40 PM, Steve Crawford wrote:
Scott Marlowe wrote:
I used
Scott Marlowe wrote:
I used this very simple little php script to make this
filename: mk55:
#!/usr/bin/php -q
Or, using standard *nix tools (Note: 0x55 = ascii U):
dd bs=1k count=256 if=/dev/zero | tr '\000' U > full_of_0x55
Cheers,
Steve
--
Sent via pgsql-admin mailing list (pgsql-admi
I used this very simple little php script to make this
filename: mk55:
#!/usr/bin/php -q
and ran it:
./mk55 > 55
ls -l 55
-rw-r--r-- 1 smarlowe smarlowe 262144 2008-09-24 13:41 55
i.e. it's 256k.
And it's attached.
On Wed, Sep 24, 2008 at 1:20 PM, Carol Walter <[EMAIL PROTECTED]> wrote:
> H
Carol Walter написа:
> Hello,
>
> Does anyone know what the format of hex characters for postgres are?
> I'm trying to create files that contain a 0x55. It looks to me like it
> should require a delimiter of some sort between the characters. I don't
> know how postgres would know that the strin