Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of alphabet covert dec to hex in ascii table
dec=97
counter=0
counter_disk=0
cant=0
read -p "Cantidad de discos a Formatear ?: " cant
while [ $counter -lt $cant ]
do
hex=$(printf "%x\n" $dec)
alphabet=$(printf "\x$hex\n")
printf "$alphabet\n"
((counter ++));
((dec ++));
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment