[Link date functions]
https://stackoverflow.com/questions/378829/convert-decimal-to-hexadecimal-in-unix-shell-script
printf "%x\n" 34 # Can run on Git-bash
echo "obase=16; 34" | bc
If you want to filter a whole file of integers, one per line:
( echo "obase=16" ; cat file_of_integers ) | bc
Git-Bash do not have bc so it can not work.
https://stackoverflow.com/questions/378829/convert-decimal-to-hexadecimal-in-unix-shell-script
printf "%x\n" 34 # Can run on Git-bash
echo "obase=16; 34" | bc
If you want to filter a whole file of integers, one per line:
( echo "obase=16" ; cat file_of_integers ) | bc
Git-Bash do not have bc so it can not work.
Comments
Post a Comment