- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hex to ascii converter
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
Discussions
Discussions
Discussions
Forums
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
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
тАО06-09-2008 05:11 AM
тАО06-09-2008 05:11 AM
does anyone know a unix program or code that will convert hex to ascii - this is for a ctree application that reports in hex.
Thanks
Chris.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 05:13 AM
тАО06-09-2008 05:13 AM
Re: hex to ascii converter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 05:24 AM
тАО06-09-2008 05:24 AM
Re: hex to ascii converter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 05:24 AM
тАО06-09-2008 05:24 AM
Re: hex to ascii converter
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 05:37 AM
тАО06-09-2008 05:37 AM
Re: hex to ascii converter
> everythink you need [...]
Everything except a clear description of the
problem to be solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 05:43 AM
тАО06-09-2008 05:43 AM
Re: hex to ascii converter
#!/usr/bin/ksh
#set -x
# To convert hex to decimal
#
/usr/bin/clear
echo " Convert DECIMAL to HEX utility"
echo ""
echo " I want to convert a decimal value, Enter 1"
echo ""
echo " Exit Enter E,exit,Q,Quit"
read e_code
case "$e_code" in
*Ee|Qq|quit|exit|bye) echo Quitting! See You Later; exit ;;
1)
echo ">>> Enter decimal value: "
read DECV_in
# echo $DECV_in
DECV=`echo "0D$DECV_in=X" | /usr/bin/adb -o`
echo "Decimal value is: $DECV"
echo ""
;;
>>>>AND IT'S COUNTERPART<<<<
#!/usr/bin/ksh
#set -x
# To convert hex to decimal
#
/usr/bin/clear
echo " Convert HEX to DECIMAL utility"
echo ""
echo " I want to convert a hex value, Enter 1"
echo ""
echo " Exit Enter E,exit,Q,Quit"
read e_code
case "$e_code" in
*Ee|Qq|quit|exit|bye) echo Quitting! See You Later; exit ;;
1)
echo ">>> Enter hexidecimal value: "
read HEX
# echo $HEX
DECV=`echo "0X$HEX=D" | /usr/bin/adb -o`
echo "Decimal value is: $DECV"
echo ""
;;
==================
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 05:56 AM
тАО06-09-2008 05:56 AM
Re: hex to ascii converter
yes I did check out a google search however I thought I'd give my friends at the ITRC an opportunity to score points ....
I'll take a look.
Chris.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 06:10 AM
тАО06-09-2008 06:10 AM
Re: hex to ascii converter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 11:44 AM
тАО06-09-2008 11:44 AM
Re: hex to ascii converter
DECIMAL=$(( 16#${HEX#0x} ))