08-04-2019
I don't think we're dealing with "converting sth. to UNIX". .dat files usually are binary files with an underlying structure understood (more or less) only by the creating and consuming application(s). They are not text files. dos2unix does not apply / do any valuable work. In contrary, it will garble the data.
So, a binary transfer is a must, and on the receiving side an apt application should read, evaluate, and use the binary data. You may want to (binary) compare files before and after transfer.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can Anyone Be Any Assistance To Help A New User Get His Back-up Commands Defined Along With Other Useful Information On Viewing What's On Tapes And Restoring Data From The Tapes. (0 Replies)
Discussion started by: ricjoh
0 Replies
2. Shell Programming and Scripting
Hi All,
I have a .dat file named test.dat where I have stored some process IDs.
Now I need to pick a process ID, one by one and then fire kill -9 for each of those. The logic should be:
1. open file <filename.dat>
2. read until last line of file
3. if process ID is found fire kill -9... (5 Replies)
Discussion started by: Sibasish
5 Replies
3. UNIX for Dummies Questions & Answers
I have a .dat file in unix and it keeps failing file validation on line x. How do I delete a data string from a .dat file in UNIX?
I tried the following:
sed -e 'data string' -e file name
and it telling me unrecognized command (4 Replies)
Discussion started by: supergirl3954
4 Replies
4. SCO
Looking for specifically naming convention for a tape device for SCO Unix
What full system backup command should I use for SCO UNIX (1 Reply)
Discussion started by: jedimaster
1 Replies
5. Shell Programming and Scripting
Hi
I have a test.dat file in UNIX which has a data.I am informatica developer i get data in those files.I need to add 50 spaces to those data in test.dat file.I am new to unix So can any one help how can i do that.
I have some 2088 rows in that test.dat file.
Can anyone help me please its... (11 Replies)
Discussion started by: karingulanagara
11 Replies
6. UNIX and Linux Applications
Hello,
is here anybody who know How I convert the .dat format files to .su format files in SeismicUnix.
Is it possible?
The dat-format files was generated when I run the forel's script, like model1.sh .
Thanks a lot
Vianney (1 Reply)
Discussion started by: vianney
1 Replies
7. Shell Programming and Scripting
Hi,
The source system has created the file in the dat format and put into the linux directory as mentioned below. I want to do foloowing things.
a) Delete the Line started with <CR><LF> in the record
b)Also line
...........................................................<CR><LF>
... (1 Reply)
Discussion started by: mr_harish80
1 Replies
8. Shell Programming and Scripting
Hi,
I need help to convert the date format in .DAT file in unix.
I want to convert
10@@|SWIFT MT568 Extract@@|Apr 14 2014 5:47:52:563PM@@|Apr 14 2014 4:33:47:663PM@@||##|
into
10@@|SWIFT MT568 Extract@@|04/14/2014/ 5:47:52:563PM@@|04/14/2014 4:33:47:663PM@@||##|
Appreciate... (18 Replies)
Discussion started by: karthikengox
18 Replies
9. Shell Programming and Scripting
Hi,
I have a .dat file with contents like the below:
Input file
============SEQ NO-1: COLUMN1==========
9835619
7152815
============SEQ NO-2: COLUMN2 ==========
7615348
7015548
9373086
============SEQ NO-3: COLUMN3===========
9373086
Expected Output: (I just... (1 Reply)
Discussion started by: MS06
1 Replies
10. Shell Programming and Scripting
How to use 'ls' command to list files like *.dat, not *.*.dat (5 Replies)
Discussion started by: pmcginni777
5 Replies
LEARN ABOUT ULTRIX
whereis
whereis(1) General Commands Manual whereis(1)
Name
whereis - locate source, binary, and or manual for program
Syntax
whereis [-sbm] [-u] [-SBM dir... -f] name...
Description
The command locates source/binary and manuals sections for specified files. The supplied names are first stripped of leading pathname com-
ponents and any (single) trailing extension of the form ``.ext'', for example,``.c''. Prefixes of ``s.'' resulting from use of source code
control are also dealt with. The command then attempts to locate the desired program in a list of standard places.
Options
-S dir
Search for source files in specified directory.
-B dir
Search for binary files in given directory.
-M dir
Search for manual section files in given directory.
-b Searches only for binary files.
-f Terminates last directory list created from use of -S, -B or -M flags and signals the start of file names.
-m Searches only for manual section files.
-s Searches only for source files.
-u Searches for files that do not have one of binary, source or manual section files. A file is said to be unusual if it does not have one
entry of each requested type. Thus ``whereis -m -u *'' asks for those files in the current directory which have no documentation.
Examples
The following finds all the files in which are not documented in with source in
cd /usr/ucb
whereis -u -M /usr/man/man1 -S /usr/src/cmd -f *
Restrictions
Since the program uses to run faster, pathnames given with the -M -S and -B must be full. That is, they must begin with a ``/''.
Files
/usr/src/*
/usr/{doc,man}/*
/lib, /etc, /usr/{lib,bin,ucb,old,new,local}
whereis(1)