How to convert binary Unix file to text | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

How to convert binary Unix file to text

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-07-2006
user12345 user12345 is offline
Registered User
 
Join Date: Nov 2006
Last Activity: 10 November 2006, 8:25 PM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
How to convert binary Unix file to text

Hi all,

I have a print control file (dflt) for Oracle which is in binary. As I am going to develope an application in Window environment, I would like to reference the dflt file. But it is in binary format and I cannot access it. Anyone can suggest me how to convert the file into text or human readable language.

Rgds
Sponsored Links
    #2  
Old 11-08-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 2 September 2014, 4:09 PM EDT
Location: NM
Posts: 10,188
Thanks: 275
Thanked 785 Times in 734 Posts
Do you know that layout of the file?
Sponsored Links
    #3  
Old 11-08-2006
user12345 user12345 is offline
Registered User
 
Join Date: Nov 2006
Last Activity: 10 November 2006, 8:25 PM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

I don't know what exact means by layout. The format of the dflt in windows is something like the following format which is a text file.
//////////////////////////////////////////////
printer "dflt"

height 66
width 80

after page control(L)

return ""
linefeed control(J)
///////////////////////////////////////////////

Rgds
    #4  
Old 11-09-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 2 September 2014, 4:09 PM EDT
Location: NM
Posts: 10,188
Thanks: 275
Thanked 785 Times in 734 Posts
Can you edit the file in unix and read it? If you know this much I am guessing that the file on the windows side is garbled.
Sponsored Links
    #5  
Old 11-10-2006
user12345 user12345 is offline
Registered User
 
Join Date: Nov 2006
Last Activity: 10 November 2006, 8:25 PM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
I cannot edit nor read the file. It should not be garbaged because the Oracle report reference it.
Sponsored Links
    #6  
Old 11-10-2006
tonlu tonlu is offline
Registered User
 
Join Date: Mar 2005
Last Activity: 10 April 2007, 2:26 AM EDT
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
maybe th command "strings" can be useful?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need a unix script to convert date into Julian format in a text file ajiwww Shell Programming and Scripting 4 09-14-2011 06:16 AM
Is there a way to convert a binary file to text file in UNIX? vee_789 Shell Programming and Scripting 7 05-22-2011 04:15 AM
Convert clear text into binary mKarri AIX 1 12-08-2010 01:22 PM
convert binary file into text file modcan Shell Programming and Scripting 2 12-29-2008 09:28 AM
trying to convert binary data to text using C++ geet Programming 2 09-05-2008 05:56 AM



All times are GMT -4. The time now is 05:24 PM.