Sponsored Content
Full Discussion: Check length of record
Top Forums Shell Programming and Scripting Check length of record Post 302341777 by DebianJ on Thursday 6th of August 2009 02:46:45 PM
Old 08-06-2009
Check length of record

Hi,
I have a problem, please help me,
I have a flat file like this:

P00000000088888888999999999 0000999903 000000000000000000
P00000000077777777000000000 0000999903 000000000000000000
P00000000044444444333333333 0000999903 00000000000000000079875
P00000000066666666111111111 0000999903 000000000000000000
P00000000055555555222222222 0000999903 000000000000000000

Every record has 58 characters
I need to know which records doesn´t have 58 characters (in red)
How can i do that????
Thans for your help

Ministerio Levantando a Cristo - Viña del Mar - Chile
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

fixed record length

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)
Discussion started by: george_
16 Replies

2. UNIX for Dummies Questions & Answers

What the command to find out the record length of a fixed length file?

I want to find out the record length of a fixed length file? I forgot the command. Any body know? (9 Replies)
Discussion started by: tranq01
9 Replies

3. Shell Programming and Scripting

Make variable length record a fixed length

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)
Discussion started by: jclanc8
3 Replies

4. Shell Programming and Scripting

Viewing a record of particular length

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)
Discussion started by: bobby1015
2 Replies

5. Shell Programming and Scripting

Record length

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)
Discussion started by: NareshN
6 Replies

6. Shell Programming and Scripting

Check for length which exceeds specified length in a line

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)
Discussion started by: rashmisb
9 Replies

7. Shell Programming and Scripting

Record length check fails due to '\' character

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)
Discussion started by: Amrutha24
10 Replies

8. Shell Programming and Scripting

Verifying Record Length

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)
Discussion started by: SoloXX
11 Replies

9. Shell Programming and Scripting

Convert variable length record to fixed length

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
LTPDRIVER(1)							  LTP executables						      LTPDRIVER(1)

NAME
ltpdriver - LTP transmission test program SYNOPSIS
ltpdriver remoteEngineNbr clientId nbrOfCycles greenLength [ totalLength] DESCRIPTION
ltpdriver uses LTP to send nbrOfCycles service data units of length indicated by totalLength, of which the trailing greenLength bytes are sent unreliably, to the ltpcounter client service process for client service number clientId attached to the remote LTP engine identified by remoteEngineNbr. If omitted, length defaults to 60000. If length is 1, the sizes of the transmitted service data units will be randomly selected multiples of 1024 in the range 1024 to 62464. Whenever the size of the transmitted service data unit is less than or equal to greenLength, the entire SDU is sent unreliably. When all copies of the file have been sent, ltpdriver prints a performance report. EXIT STATUS
0 ltpdriver has terminated. Any problems encountered during operation will be noted in the ion.log log file. 1 ltpdriver was unable to start, because it could not attach to the LTP protocol on the local node. Run ltpadmin to start LTP, then try again. FILES
The service data units transmitted by ltpdriver are sequences of text obtained from a file in the current working directory named "ltpdriverAduFile", which ltpdriver creates automatically. ENVIRONMENT
No environment variables apply. DIAGNOSTICS
Diagnostic messages produced by ltpdriver are written to the ION log file ion.log. ltpdriver can't initialize LTP. ltpadmin has not yet initialized LTP protocol operations. Can't create ADU file Operating system error. Check errtext, correct problem, and rerun. Error writing to ADU file Operating system error. Check errtext, correct problem, and rerun. ltpdriver can't create file ref. ION system error. Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun. ltpdriver can't create ZCO. ION system error. Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun. ltpdriver can't send message. LTP span to the remote engine has been stopped. ltp_send failed. LTP 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
ltpadmin(1), ltpcounter(1), ltp(3) perl v5.14.2 2012-05-25 LTPDRIVER(1)
All times are GMT -4. The time now is 01:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy