VI Editor, :set nu
Jeff Kinz
jkinz at kinz.org
Mon Jun 30 09:33:25 EDT 2003
On Mon, Jun 30, 2003 at 09:28:05AM -0400, paulc wrote:
> The vi editor has a neat function to enumerate the lines
> of a file with numbers, as in ' :set nu ' ...
>
> I would like to be able to do this
> and capture the file (with the line numbers)
> so that I can save the file for an example,
> then print out (???)
>
> Is there a way to enumerate a file of code
> so that I can save, with line numbers ?
use the nl command :
nl <filename> [redirect stdout to a file to save.]
>
> thanks
>
> paulc
>
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss
>
--
Jeff Kinz, Open-PC, Emergent Research, Hudson, MA. jkinz at kinz.org
copyright 2003. Use is restricted. Any use is an
acceptance of the offer at http://www.kinz.org/policy.html.
Don't forget to change your password often.
More information about the Discuss
mailing list