25 Oct 2010
Note to brain: line numbering in a file can be done using nl – easier than using sed.
% nl -p -n rz /tmp/foo.txt > /tmp/bar.txt
- -p Specify that line numbering should not be restarted at logical page delimiters
- -n format Specify the line numbering output format.