How to left-align line numbers?

To left-align line numbers using the nl command, you can use the -n option with the l argument. Here’s how you can do it:

nl -n ln filename.txt

In this command:

  • -n ln specifies that the line numbers should be left-aligned.
  • filename.txt is the name of the file you want to display with left-aligned line numbers.

This will produce output where the line numbers are aligned to the left side of the output.

0 Comments

no data
Be the first to share your comment!