I wanted to modify each line of a .txt file in CMD by adding "0x" every two characters, any idea what command should I use inside the for
?
The source.txt file would look something like this:
602A0020B1010008B9010008BB010008
BD0185AC8B9010008BB10008BB010008
AC8B9010008BB100B9010008BB045809
602A0020B1010008
The output format that is expected to be obtained in the file result.txt or in the same source, would be the following:
0x60, 0x2A, 0x00, 0x20, 0xB1, 0x01, 0x00, 0x08, 0xB9, 0x01, 0x00, 0x08, 0xBB, 0x01, 0x00, 0x08,
0xBD, 0x01, 0x00, 0x08, 0xBF, 0x01, 0x00, 0x08, 0xC1, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00,
...