2

I'm having an issue where the Mac version of nl will mark a new line after 2048 characters. I tried it on Linux, and it doesn't do this. Any idea why it does on Mac, and how to fix it?

1 Answer 1

2

From man nl:

BUGS
     Input lines are limited to LINE_MAX (2048) bytes in length.

To fix, you can either patch the source yourself (might need some work) or get the source for the Linux version (which is probably available on any GNU server).

1
  • 2
    A bare-bones replacement for nl is awk '{print NR,$0}'.
    – lhf
    Commented Mar 25, 2015 at 23:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .