hello!
I have a file with fixed record length...
format:
123445asdfg 4343777 sfgg
I wanna convert it to
123445,asdfg ,4343,777 ,sfgg
is there any way to do it?
sed/grep/awk??
at the moment I use sed -e 's_ \(\)_,\1_g'
but it works only if there are spaces between... (16 Replies)
Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types:
(H)eader Records
(D)etail Records
(T)railer Records
The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
I have records with different lengths say 386, 387 and 388. Do i have any command to view all the records of the length 386 ? Please do advise.
Thanks (2 Replies)
Hi,
The record length may be differ in afile. I want to display the records if the record length is not equal to 50 using sed/awk command.
Thanks in Advance (6 Replies)
Hi,
I have a issue, I need to loop through a comma delimited file and check for the length which exceeds specified length , if Yes truncate the string.
But my problem is , I do not have to check for all the fields and the field lenght is not same for all the fields.
For ex:
Say my line... (9 Replies)
When I check the length for the records in the file, it does not give me the correct value. I used wc -l command.
Example records:
abcdefghij
abcd\efghij
abcdefghi
Expected output is:
10
11
9
But the output returned is
10
10
9
Please help me on this issue. (10 Replies)
Hi all,
We are going through a total migration from AIX-based server framework to Linux-based servers. When I am testing *.sh and *.awk in a lower environments, it abends at the same step everytime in verifying the record length of the first row of the source file.
I know this source file... (11 Replies)
Hi Team,
I have an issue to split the file which is having special chracter(German Char) using awk command.
I have a different length records in a file. I am separating the files based on the length using awk command.
The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
7 Replies
LEARN ABOUT DEBIAN
file2dgr
FILE2DGR(1) DGR executables FILE2DGR(1)NAME
file2dgr - DGR transmission test program
SYNOPSIS
file2dgr remoteHostName fileName [nbrOfCycles]
DESCRIPTION
file2dgr uses DGR to send nbrOfCycles copies of the text of the file named fileName to the dgr2file process running on the computer
identified by remoteHostName. If not specified (or if less than 1), nbrOfCycles defaults to 1. After sending all lines of the file,
file2dgr sends a datagram containing an EOF string (the ASCII text "*** End of the file ***") before reopening the file and starting
transmission of the next copy.
When all copies of the file have been sent, file2dgr prints a performance report:
Bytes sent = I<byteCount>, usec elapsed = I<elapsedTime>.
Sending I<dataRate> bits per second.
EXIT STATUS
0 file2dgr has terminated.
FILES
No configuration files are needed.
ENVIRONMENT
No environment variables apply.
DIAGNOSTICS
Diagnostic messages produced by file2dgr are written to the ION log file ion.log.
Can't open dgr service.
ION system error. Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun.
Can't open input file
Operating system error. Check errtext, correct problem, and rerun.
Can't acquire DGR working memory.
ION system error. Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun.
Can't reopen input file
Operating system error. Check errtext, correct problem, and rerun.
Can't read from input file
Operating system error. Check errtext, correct problem, and rerun.
dgr_send failed.
ION system error. Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun.
BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu>
SEE ALSO file2dgr(1), dgr(3)perl v5.14.2 2012-05-25 FILE2DGR(1)