Emacs

Numbering lines
Adding a sequence of numbers
Changing a file's line endings in Emacs
Converting between LF, CR-LF, CR line endings using emacs