Numbering lines in a file

Hi all,

I need to number the lines in a file.
I tried using "set nu" in the vi editor, but it is only temporary.
Can anyone help me please.

Thanx in advance.

MK

See this thread:

http://www.unix.com/showthread.php?threadid=5674&highlight=vi\+rc\+file