On Mon, 10 Nov 2003 14:35:35 +0800
"Zhang Weiwu" <[EMAIL PROTECTED]> wrote:

Hi,

> Today I found I cannot calculate what is the octal form of 0xa04e.
> 
> First I thought xcalc should do the work, but it seems only deal with 
> decimal.
> 
> I have perl, tcsh, python interprater. It is likely that they are all 
> capable of this kind, but what are the commands for them? What's the most 
> convenient way?

How about: echo 0xa04e | awk '{printf "%o\n",$1}'

Cheers,
-- 
        Miguel Mendez <[EMAIL PROTECTED]>
        http://www.energyhq.es.eu.org
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to