Operating System - HP-UX
1753507 Members
4915 Online
108795 Solutions
New Discussion юеВ

Re: Please help me achieve Streamlined Counting

 
SOLVED
Go to solution
Patrick Ware_1
Super Advisor

Re: Please help me acheive Streamlined Counting

Wait, I understand..
Patrick Ware_1
Super Advisor

Re: Please help me acheive Streamlined Counting

And this to directly address the issue:

#printf "%02x0000\n" 10
0a0000
Dennis Handly
Acclaimed Contributor

Re: Please help me achieve Streamlined Counting

>but how would I get the output in hexadecimal?

A real shell will allow you to print in hex with:
$ typeset -i16 CURRENT=20; echo $CURRENT
16#14