Convert Binary data to ascii data

Friends,

I've tried on solaris, but I could n't get ascii data

dd if=binaryinputfile bs=1 skip=3800 count=4 | od -t u4

output :

INDBU3:/usr/users/FTAMUSER/kk $
dd if=SMP20041006173649188151 bs=1 skip=3800 count=4 | od -t u4
4+0 records in
4+0 records out
0000000 0000000000
0000004

Pls help me to convert binary to ascii on solaris or true64.

Thanks
Krishna

have you tired dos2unix and unix2dos?

freshmeat.net

My source file is in Unix Binary formated but I need to be convert in Ascii on Unix, Don't have idea on UnixtoDos or DostoUnix? pls help me out.
Thanks

they are utilities to convert files to each respective format. if you dont have them installed on your system already, go to freshmeat.net and search for them. they are available for download there.

Krishna,

If you know the data structure of the binary file, you can write a C program to 'fread' the file into a structure and can write into text file.