The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can i read a non text file in unix - ELF-64 executable object file - IA64 alexcol UNIX for Advanced & Expert Users 8 2 Weeks Ago 05:56 AM
unix script to takes the old data from a TXT file and compress them into new file vpandey Shell Programming and Scripting 2 03-05-2008 08:10 AM
mailx saved messages are unreadable (base64) Squeakygoose UNIX for Dummies Questions & Answers 1 01-30-2008 08:49 AM
Unreadable SanjayLinux Shell Programming and Scripting 3 09-25-2007 03:52 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 04:57 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-07-2007
Registered User
 

Join Date: Feb 2007
Posts: 19
Unreadable Unix File

Hi Everyone,


I have a question for you all. I am working at a company and we are trying to recover .dat files which were created on an older linux box and we have a folder of .dat files that are unreadable. When you try to open them in a text editor you get jibberish all shapes and sizes and when you try to open the files in a file viewer it shows them as a hexadecimal/binary file. These .dat files ultimately have or should have readable data in them stating what we need. If anyone has some solutions or would like to know further details I really would appreciate it. I also checked the permissions on the files and the user it belongs to on the unix box and we were unable to open them on the unix box or on the windows box.

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 02-07-2007
Registered User
 

Join Date: Jan 2007
Posts: 366
Comsidering the extention of the file (.dat) I doubt they are plain text files. Allthough any extention can be given to a file in Unix, it is not common to use it for plain text files.

The following command could provide you some info about that kind of files they are:

file <filename>
or just
file *

So "file" is a command here and not a reference to a file, <filename> is one of those .dat files.

To see if there is any ascii content at all in those files you can use the command:

strings <filename>

How were these files created? By some kind of application? If so, which application?
Reply With Quote
  #3  
Old 02-07-2007
Registered User
 

Join Date: Feb 2007
Posts: 19
The file was created in a proprietary fortran script.
Reply With Quote
  #4  
Old 02-07-2007
Registered User
 

Join Date: Feb 2007
Posts: 19
Also where should i apply the command you stated above?
Reply With Quote
  #5  
Old 02-07-2007
Registered User
 

Join Date: Jan 2007
Posts: 366
Quote:
Originally Posted by ryangfm
Also where should i apply the command you stated above?
In the directory where to .dat files are located on those .dat files
Reply With Quote
  #6  
Old 02-07-2007
Registered User
 

Join Date: Feb 2007
Posts: 19
nah that doesnt make sense........I guess what im trying to say is do you know a way to read these dat files so we can understand what they mean besides hex or binary because they were made in fortran and they have important info on them that my company needs and we have tried alot and before we recreate lets says 500 dat files we want to try to get them readable.
Reply With Quote
  #7  
Old 02-07-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
sb008 is telling you to run the file command to see if it can identify what the actual file type is, without knowing how the files were written how can you expect someone to be able to tell you how to read them?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0