I have a file with over 3 million lines, but when I use the nl command, it seems to be limited to 6 digits, and rolls over every million. Is this a defect, or is there a way to work around this?
Ah, it has nothing to do with restarting number, it is related to the width.
nl -w 10 MYFILE
works.