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?
Asked
Active
Viewed 40 times
-3
-
3Did you read the `nl` man page? There's an option for it. – glenn jackman Jul 11 '19 at 15:57
-
1try --no-renumber – yoga Jul 11 '19 at 16:14
-
That is not an option on the Mac. – ergonaut Jul 11 '19 at 16:48
1 Answers
1
Ah, it has nothing to do with restarting number, it is related to the width.
nl -w 10 MYFILE
works.

ergonaut
- 6,929
- 1
- 17
- 47