LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   print a text file with long lines and line number added (https://www.linuxquestions.org/questions/linux-general-1/print-a-text-file-with-long-lines-and-line-number-added-448736/)

powah 05-26-2006 07:45 AM

print a text file with long lines and line number added
 
I want to print a text file with long lines and line number added.
This will wrap line of text file but does not have the line number added.
$ lpr file

kaz2100 05-26-2006 01:16 PM

Are these what you want?
Code:

cat -b
or
Code:

cat -n

haertig 05-26-2006 02:02 PM

For additional formatting options beyond what "cat" can do, check out the "pr" command.


All times are GMT -5. The time now is 07:24 AM.