is there are nice unix command for dumping the text representation of a binary file.

Posted by monkeyking on Stack Overflow See other posts from Stack Overflow or by monkeyking
Published on 2010-03-30T02:14:42Z Indexed on 2010/03/30 2:23 UTC
Read the original article Hit count: 394

Filed under:
|
|
|
|

Hi I got some binary files containing integers. Is there some nice unix command, that will allow me to dump it to a terminal without offset info etc?

something like

double int[4];
while(fread(tmp,sizeof(int),4,stdin))
    for(int i=0;i<4;i++)  printf("%d\t",tmp[i]);

It seems that hexdump and od gives me the information I want, but the output is to verbose. I just want the contents.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c