Member_2_99151
asked on
How do I convert an integer to hex and assign to a string in bash
Hi all,
I am developing a bash script and I need to convert an integer number into a fixed format hex string.
for example, 255 would need to be stored as "00FF" and assigned to a variable
How do I do this (I am new to bash!)
Thanks,
James
I am developing a bash script and I need to convert an integer number into a fixed format hex string.
for example, 255 would need to be stored as "00FF" and assigned to a variable
How do I do this (I am new to bash!)
Thanks,
James
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER