$nl workethics.txt > newfile
nl - number lines of files
Write each FILE to standard output, with line numbers added.
With no FILE, or when FILE is -, read standard input.
Debian Manual for "nl" command.