Tweets from pichat
| Follow my new user account @markseu About 2 months, 3 weeks ago from Pichat (Pichat Software) |
Tweets from 600infos
| I HAVE NYANED FOR 888.4 SECONDS! http://t.co/JQYOZebv via @nyannyancat About 3 months, 3 weeks ago from 600infos (Wolf) |
Trace: » firewall.cmd for windows 7 and XP » Was man (ich) bei einem neuen Windows 7 zuerst macht » formatiere Schrift » gksu » herunterfahren.cmd » Hex2Dec
You are here: Pichat Wiki (en) » Snippets » Hex2Dec
Table of Contents
Hex2Dec
convert a hex to a dec value
!/bin/sh read -p "Hexadezimalzahl? " hex dez=`printf "%d" 0x$hex` echo Dezimal: $dez
convert a dec to a hex value
!/bin/sh read -p "Dezimalzahl? " dez hex=0x`printf "%x" $dez` echo Hexadezimalzahl: $hex