Le mer, 04 sep 2002 11:37:21 Frédéric Bothamy a écrit :
[EMAIL PROTECTED]:~$ builtin printf %d\n 0xff
»255
[EMAIL PROTECTED]:~$ /usr/bin/printf %d\n 0xff
»255
[EMAIL PROTECTED]:~$ echo $SHELL
»/bin/bash
Chez moi, sur ma patate, seul /usr/bin/printf fonctionne en conversion
hexadécimal vers
At 09:29 04/09/2002 +0200, Romuald DELAVERGNE wrote:
Le 2002.09.03 17:06, kamel a écrit :
Une question bête, comment faites-vous le calcul ?
Un moyen simple et rapide de faire des conversions hexadécimale -
décimale à partir d'un shell:
* printf 0x%X\n nombreDecimal
là, ca marche :
là, ca ne marche pas tres bien
Pourtant ça devrait
aristote:~# printf %d\n 0xff
bash: printf: 0xff: illegal number
0xff: tu as bien tappé un zéro et pas 'o' majuscule pour 0xff ?
On Wed, Sep 04, 2002 at 09:42:47AM +0200, kamel wrote:
aristote:~# printf %d\n 0xff
bash: printf: 0xff: illegal number
[EMAIL PROTECTED]:~$ printf %d\n 0xff
255
--
Arnaud Delobelle
At 10:09 04/09/2002 +0200, Romuald DELAVERGNE wrote:
là, ca ne marche pas tres bien
Pourtant ça devrait
aristote:~# printf %d\n 0xff
bash: printf: 0xff: illegal number
0xff: tu as bien tappé un zéro et pas 'o' majuscule pour 0xff ?
oui, je suis surppris de ce comportement de ma machine.
On Wed, Sep 04, 2002 at 10:37:33AM +0200, kamel wrote:
At 10:09 04/09/2002 +0200, Romuald DELAVERGNE wrote:
là, ca ne marche pas tres bien
Pourtant ça devrait
aristote:~# printf %d\n 0xff
bash: printf: 0xff: illegal number
0xff: tu as bien tappé un zéro et pas 'o' majuscule pour 0xff ?
6 matches
Mail list logo