Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

record size

Status
Not open for further replies.

SOL9MAN

Technical User
Mar 11, 2003
12
0
0
GB
What is the best way to determine the size of the second line (a record) in an ascii file ?

regards
 
if you have quite a lot of records then put in the exit command so you quit scanning after the match.

e.g.

awk 'NR==2 {print length($0); exit}' file1

Cheers,
ND [smile]

bigoldbulldog@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top