-3

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?

ergonaut
  • 6,929
  • 1
  • 17
  • 47

1 Answers1

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