On the awk page:
Patterns are arbitrary Boolean combinations (with! || & &) of regular expressions and relational expressions ....
A pattern can consist of two patterns, separated by a comma; in this case, the action is performed for all lines from the occurrence of the first pattern, although the appearance of the second ....
Here the first is /pattern/ , and the second is the literal constant 0 , which is false. Thus, it starts with the first line that matches, and stops when the line does not exist at all, which happens only after the file completes.
As another example, compare:
jot 10
from:
jot 10 | awk 'NR==4,NR==6 { printf("line %d: %s\n", NR, $0) }'
torek source share