- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hex calculator in HPUX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 06:03 AM
09-20-2004 06:03 AM
thanks
Jake
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 06:06 AM
09-20-2004 06:06 AM
SolutionSure, adb can do it for you. adb can convert HEX to DEC and viceversa
# echo "0X
This will convert the HEX input to decimal
# echo "0D
This will convert the DEC input to HEX.
- Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 06:08 AM
09-20-2004 06:08 AM
Re: Hex calculator in HPUX
Did you take a look at the "bc" command. This is the binary calculator.
Some of the kernel parameters are defined as some other kernel parameter + some value. How are you planning to address through a script.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 06:09 AM
09-20-2004 06:09 AM
Re: Hex calculator in HPUX
Attached.
Enjoy, Have FUN! H.Merijn [ who also has a caculator written in c, but if it's user-friendly is just a matter of taste. For me it is, I used it daily ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 06:22 AM
09-20-2004 06:22 AM
Re: Hex calculator in HPUX
Thanks everyone!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 10:06 AM
09-20-2004 10:06 AM
Re: Hex calculator in HPUX
$ MYNUM=1F
$ echo "ibase=16\n$MYNUM" | bc"
$ 31
bc requires hex values to be UPPERCASE. NOTE: SAM does *not* require hex so you can just type in the decimal number. The 0x flag says the value is in hex but leave out 0x and now the number is taken as decimal. Now, if SAM could just understand those nifty units of measure like dd (900k) so counting zeros wasn't such a problem...
Bill Hassell, sysadmin