Convert a file of binery values to hex file
Hi,
I have a file that looks like that: 11000010 00000000 00010001 00100000 11110111 00000000 10001100 00000001 10110110 and so on for thousands of lines... i want to convert it to a file that looks like this: FA D7 67 A6 0F 00 61 3C F1 A3 47 3A 08 00 81 1C DD 13 67 AA 5F 00 11 3C FA D3 69 AA 0F 00 61 3B i just made up the HEX values, they don't much in my example... i found this to be what I'm looking for but for a single value : Code:
echo "obase=16;ibase=2; 11000100" | bc |
Just do a while loop on your file:
Code:
cat file |while read binary |
All times are GMT -5. The time now is 02:53 PM. |