How to print out a plain text file with line numbers in Linux?

Use the nl command:

nl text-file

Find options in the nl manual.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *