Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Decode windows .dat file

Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Decode windows .dat file

I have received a file from a Windows server that in Linux hexedit shows the following first few characters.
Code:
AA 18 3C 2B  60 56 03 00  00 01 01 00

The Windows program may have received this via RS232.
I need to "understand" this on a Linux machine.
Please suggest where I may start decoding this?

Last edited by jim mcnamara; 02-08-2016 at 02:38 PM..
# 2  
Hi Alf,

You're going to have to give us a bit more to work with I think.

You say that you have received a file from a Windows machine a ".dat" file, you also say the Windows machine may have received the file by RS232.

You don't say what the source of the file is;
  • Was it generated by an application? If so what was it?
  • What have you done in respect of "decoding" the file?
  • What do you need to understand on a Linux machine?

There are many ways of looking at this problem, as to decoding the file - there are lots of tools available if you want to just have a look at the file. Fewer if you want to manipulate the contents of the file, you'll have to give a bit more information.

Regards

Gull04
# 3  
I agree with gull04...

A .dat extension is meaningless unless you know what app created it, and even then one might not be able to decode it easily because the file is _binary_...

The fact that it was sent from a Windows server is immaterial it is the app that created it that is important...

So please give us more HEX hexdump to look at AND also use code tags as per forum rules...

TIA.
# 4  
A .dat is quite a commonly used extension to mean "data", it can be generated by many programs and although I've seen many .dat file headers, I've never seen that header at the start.

it doesn't have an ascii fourcc at the start, so that gives me no clues. I would guess its just data from the start as the values as longs or shorts are very high, unless there are about 43k records or size? i'm just guessing now.
Code:
.<+`V

Can you provide the data originator application name?

Is it possible it could be compressed, and headers are omitted (ie a gz stream)
# 5  
Try the file utility if you have it. file filename.dat It may tell you if it recognizes the kind of file.

In all likelihood you will have to ask whoever built this arrangement, what it is.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
How to use 'ls' command to list files like *.dat, not *.*.dat?
pmcginni777
How to use 'ls' command to list files like *.dat, not *.*.dat... Shell Programming and Scripting
5
Shell Programming and Scripting
Execution of loop :Splitting a single file into multiple .dat file
SwagatikaP1
hdr=$(cut c1 $path$file|head -1)#extract headerH trl=$(cut c|path$file|tail -1)#extract trailer T SplitFile=$(cut c 50-250 $path 1$newfile |sed$/ *$// head -1)# to trim white space and extract table name If; then # start loop if it is a header While read I #read file Do...... Shell Programming and Scripting
4
Shell Programming and Scripting
How to decode nfs file handle in HP-UX?
vipinable
Hi Experts, Any idea how to decode file handle in HP-UX? I am getting the following error continously in my HP-UX 11.31 box :mad: Apr 26 07:15:00 host62 su: + tty?? root-bb Apr 26 07:15:00 host62 su: + tty?? root-abcadm Apr 26 07:15:01 host62 vmunix: NFS write error on host peq9vs:...... UNIX for Advanced & Expert Users
1
UNIX for Advanced & Expert Users
Performance issue in UNIX while generating .dat file from large text file
KRAMA
Hello Gurus, We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this . Problem Definition: /Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below...... Shell Programming and Scripting
19
Shell Programming and Scripting
DECODE file field is required in Bash
hanu_oracle
Dear All, I want to decode the one of the file field. Input file: 9393939393|999|2009-02-20 00:00:01|2||4587|2007-02-28 00:00:01|0 9393939393|2001|2009-02-20 00:00:01|2||4587|2007-02-28 00:00:01|0 9393939393|1500|2009-02-20 00:00:01|2||4587| 2007-02-28 00:00:01|0...... Shell Programming and Scripting
1
Shell Programming and Scripting

Featured Tech Videos