Add Line Numbers
Tagged with: command, line, Linux, number, numbering, sed, shellfu
Tuesday, July 7th, 2009 11:50 PM
Use this command to add line numbers to a text file…
sed = filename.txt | sed 'N;s/\n/\t/' > filename_number.txt
Use this command to add line numbers to a text file…
sed = filename.txt | sed 'N;s/\n/\t/' > filename_number.txt