Nl command in Linux

 

Nl Command in Linux

Nl Command

  • This command is used to display the contents of file with line numbers.
  • This command takes file as an input and return the contents of file with line numbers. The file is regular text file (.txt)

Syntax

    nl filename

Example:     $nl city.txt


















Video Demo





Comments

Popular posts from this blog

God Murugan: Wallpapers, Wishes, Quotes in tamil

3 Linux Tips to Show File Contents with Line Numbers

If…elif…else Statement in Shell Script