Oct 15, 2003 #1 SOL9MAN Technical User Mar 11, 2003 12 GB What is the best way to determine the size of the second line (a record) in an ascii file ? regards
Oct 15, 2003 #2 Ygor Programmer Feb 21, 2003 623 GB awk 'NR==2 {print length($0)}' file1 Upvote 0 Downvote
Oct 15, 2003 #3 bigoldbulldog Programmer Feb 26, 2002 286 US 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 bigoldbulldog@hotmail.com Upvote 0 Downvote
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 bigoldbulldog@hotmail.com