![]() It basically treats the string as a grouping of two-hex-digit sections, handling the front one (which may only be one character long if the string length is odd) then stripping that off and processing the rest of the string recursively.įor each section other than the first, it outputs the. The MAC Address on the bar code label is 00:04:F1:AF:49:1F Convert MAC Address to the hexadecimal representation of Tag ID is 0x02AF491F The Tag ID in decimal. When you are dealing with MAC addresses, systems like to print them out as hexadecimal numbers: arp -an (10.0.10.200) at 00:80:F0:56:46:30. ![]() Here's one way to do it as a general purpose solution, being able to handle any length hex string:
0 Comments
Leave a Reply. |