I need to get the hexa value of a file i have.
On linux, this was Simply done with :
hexdump -ve '1/1 "%.2x"' Filename
However, on Windows, i couldn't found a good equivalent for hexdump. I'm using MinGW64, so basically i was looking for a hexdump.exe that i could simply add to my MinGW repo. I did found two of them, but none is the same as the linux one; they're just the same as hexdump -C
So, do you know a good equivalent, or a way to get what i want with others functions? (but no PowerShell function). I got sed and awk if that could help...
Here is an example; if i have this file named TEST:
TEST:
test test test
then i want to have this result:
746573742074657374207465737420
(without any newline)
hexdump -ve '1/1 "%.2x"'
in Windows. Could also be another function or a bunch of commands. Sincehexdump
is a shell function and most of Windows equivalent to shell functions are asked in stack overflow, i put it in stack overflow. Seems legit to me. As for the "duplicate", wich IS in Stack Overflow (and is NOT a duplicate. asking to write hex values INTO a file, not the hex value OF a file. However, got good tips in it.) – CallenderCertUtil -encodehex infile.txt outfile.hex 12
... – Binetta