Delila Program: number

number program

Documentation for the number program is below, with links to related programs in the "see also" section.

{   version = 1.10; (* of number.p 2010 Mar 01}

(* begin module describe.number *)
   number: add line numbers to a file

   number(input: in, output: out)

   input:  input file
   output: input file with line numbers at the start

   Add line numbers to the input file.



see also

   A slow but effective solution to the technical note below is in:

   Thomas Dana Schneider


technical notes
   Perhaps the program should have an option to define the number of columns
   for the line numbers.  An earlier version computed this.  However, to do
   that requires resetting the file and prevents the program from being used
   as part of a pipe.  The current program simply uses a default value for
   the number of columns so that number can be used as part of a pipe.

   See cumulative.p for a solution, not yet implemented.

(* end module describe.number *)
{This manual page was created by makman 1.45}

{created by htmlink 1.62}
U.S. Department of Health and Human Services  |  National Institutes of Health  |  National Cancer Institute  |  | 
Policies  |  Viewing Files  |  Accessibility  |  FOIA