You can use sed's = command to add line numbers if that's what you mean:
sed = yourfilename | sed 'N;s/\n/ /'
will print your file to screen with the line number in front of every line, followed by a space. If you want to redirect to another file, then use:
sed = yourfilename | sed 'N;s/\n/ /' > newfile