in reply to Re: Re: Reading in N lines at a time
in thread Reading in N lines at a time
You might consider using $. instead of the leading didget.
It will give you the line number of the last line read without the need to alter the way your script parses it's input when you are done debuging.