Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2009
    Posts
    4

    Conversion from binarry to ASCII

    I need to convert a file in binary form to ASCII form. Can any body help me with the Unix script?
    Also, I will appreciate if any body can recommend/be of help on any good book on unix script for a beginner.
    Thanks

  2. #2
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    How should this conversion be done? Do you want to have the hex representation of the single bytes? You may want to have a look at the "hexdump" tool.
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  3. #3
    Join Date
    Jun 2007
    Location
    London
    Posts
    2,527
    Quote Originally Posted by shileola83
    I need to convert a file in binary form to ASCII form. Can any body help me with the Unix script?
    That tells us nothing about the file. You could try something like the following that will tell us what's in the file :

    Code:
    head -2 MyFile | od -c

    Quote Originally Posted by shileola83
    Also, I will appreciate if any body can recommend/be of help on any good book on unix script for a beginner.
    Thanks
    I'd recommend "Unix Programming Environment" by Kernighan but the "Unix in a nutshell" is also good but less inclined towards beginners.

  4. #4
    Join Date
    Feb 2009
    Posts
    4
    The file is a raw CDR data from from HLR (Home Location Register) that needs to be converted to readable formart .
    Thanks

  5. #5
    Join Date
    Jun 2007
    Location
    London
    Posts
    2,527
    The only information I could find on HLR was this. Have you tried asking whoever supplied you with the data how you should read it or what the format it's in?

  6. #6
    Join Date
    Nov 2012
    Posts
    2

    Binary file to readable format conversion

    We are also facing a similar issue. Was this issue resolved then. We want to convert a ASN.1 binary file into readable one. The command OD doesnt convert the timestamp field appropriately. Any help would be high;y appreciated.

    Thanks,
    Raju

  7. #7
    Join Date
    Feb 2006
    Posts
    172
    This is a site that will convert the .cdr file(s):
    CONVERT COREL DRAW FILES ONLINE - Free Online File Conversion Services | Filespazz.com
    And this with this utility you should be able to view and/or convert them:
    CDR Viewer - CNET Download.com
    hth

  8. #8
    Join Date
    Nov 2012
    Posts
    2

    File conversion

    Thanks for the Response.

    I am not able to use the utility as it says that the package is corrupted and some files may be missing.

    Any other alternate pls.

    Thanks,
    Raju

  9. #9
    Join Date
    Feb 2006
    Posts
    172

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •