[Toybox] Looking at nl

Terrel Shumway pythonista466 at gmail.com
Sat May 25 21:08:51 PDT 2013


On Sat, May 25, 2013 at 5:36 PM,  <idunham at lavabit.com> wrote:
> I thought I'd look at what nl takes, since it's not much more than
> looping over some lines, incrementing, and formatting the output.
> The POSIX reference page is:
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nl.html

An awk wizard could do that in less than a dozen lines. Since awk is
already supposed to be in the toybox, why not write nl as a script?

"Perfection is achieved, not when there is nothing more to add,
but when there is nothing left to take away."
  -- Antoine de Saint-Exupery



More information about the Toybox mailing list