nl

From NetBSD Wiki

Jump to: navigation, search

The nl(1) (or "number-line") utility reads lines from the named file or the standard input if the file argument is omitted, applies a configurable line numbering filter operation and writes the result to the standard output.

% nl helloworld.c
     1  #include <stdio.h>

     2  void main(void)
     3  {
     4        printf("Hello World! \n");
     5  }
%

Additional Information

View source code (Please report any bugs or suggestions here).

Retrieved from "http://wiki.netbsd.se/nl"
Personal tools