I have received a file from a Windows server that in Linux hexedit shows the following first few characters.
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..
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.
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...
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.
Can you provide the data originator application name?
Is it possible it could be compressed, and headers are omitted (ie a gz stream)
hi
i have this file :
<?xml version="1.0" encoding="UTF-8"?>
<OnDemand xmlns="http://xsd.telecomitalia.it/Schema/crmws.entity.OnDemand"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xsd.telecomitalia.it/Schema/crmws.entity.OnDemand... (2 Replies)
hdr=$(cut -c1 $path$file|head -1)#extract header”H”
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... (4 Replies)
Hi All,
I thinking on how to accelerate the speed on calculate the dat file against the number of records CTRL file.
There are about 300 to 400 folder directories that contains both DAT and CTL files.
DAT contain all the flat files records
CTL is the reference check file for the... (3 Replies)
Hi All
I have a .dat file, the values are seperated by ". I wish to identify all field values in field 14 that are not '01-APR-2013' band then copy those records to a new file. Can anyone suggest the UNIX command required.
Thanks in advance
Andy (2 Replies)
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:... (1 Reply)
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... (19 Replies)
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... (1 Reply)
Hi.
I want to attach a .xls or .dat file while sending mail thru unix.
I have come across diff attachments sending options, but allthose embeds the content in the mail. I want the attachement to be send as such.
Please help me out.
regards
Diwakar (1 Reply)