I am trying to write a simple AWK script I need it to scan through a file and return some results based on a specified pattern. It has to count the number of records scanned though as well as the number of records returned. I use the NR variable for the records returned, but how do i count records scanned? Any help is much appreciated, been at this literally all day!