Which "2nd"? - You mean this one...? awk 'length < 5 {print NR}' file
Works for me.
If your awk's version doesn't support the length function without
arguments - but then your own try should as well not work - then try:
awk 'length($0) < 5 {print NR}' file
But I suggest not to compare to some arbitrary value 5 instead of any
real empty-test. But instead of "< 5" you could also just use
!length($0) {print NR}
Though, if you're operating in a WinDOS environment some spurious CR
(^M) might be considered a character and length return something >0.
(But I have no WinDOS to check that.)
Janis
>
> Thanks, Janis
>