Re: Hex to ASCII conversion?

2014-12-25 Thread Bernhard Voelker
On 12/25/2014 09:04 PM, Bob Proulx wrote: > I have a string of hex encoded us-ascii characters. The hex sequence > 48 61 70 70 79 is obviously "Happy". Is there an easy way to convert > them to ascii using printf? It seems like there should be. > > $ printf "%c\n" 0x48 0x61 0x70 0x70 0x79 >

Hex to ASCII conversion?

2014-12-25 Thread Bob Proulx
I have a string of hex encoded us-ascii characters. The hex sequence 48 61 70 70 79 is obviously "Happy". Is there an easy way to convert them to ascii using printf? It seems like there should be. $ printf "%c\n" 0x48 0x61 0x70 0x70 0x79 0 0 0 0 0 Nope. It doesn't operate like C d

Re: Where are the OPTS bdfgiMhnRrV of --key of sort documented?

2014-12-25 Thread Pádraig Brady
On 25/12/14 16:13, Peng Yu wrote: > Hi, > > I am trying to find the detailed meaning of bdfgiMhnRrV. But I can not > find it in the manpage or the infopage. Does anybody know where are > they documented? Thanks. The man page text is: --key=KEYDEF ... ... KEYDEF is F[.C][OPTS][,F[.C][OPTS]] ... .

Where are the OPTS bdfgiMhnRrV of --key of sort documented?

2014-12-25 Thread Peng Yu
Hi, I am trying to find the detailed meaning of bdfgiMhnRrV. But I can not find it in the manpage or the infopage. Does anybody know where are they documented? Thanks. -- Regards, Peng