I have a HEX string in my bash script like the following:
1B6C00001AD615
I want to write this string in a binary file. (the binary representation of this string in a file that can be read with any normal hex editor for example)
I tried to use "bc" with ibase=16 and obase=2 , got the binary result in a string and tried to echo that to a file like in following example
echo -n -e 0100011000100101010101000010010
But when I try
vim -b myFile
It does not appear as it should. Any suggestions>