How to start numbering from a specific value?

0109

To start numbering from a specific value using the nl command, you can use the -v option followed by the desired starting number. Here’s the syntax:

nl -v [starting_number] [file_name]

Example

If you want to start numbering from 10 for a file named example.txt, you would use:

nl -v 10 example.txt

This command will display the contents of example.txt with line numbers starting from 10.

0 Comments

no data
Be the first to share your comment!