Nl


From Linuxconfig.org

Jump to: navigation, search

.. back to the list of Linux Commands

Name

nl - number lines of files

Synopsis - man page

nl [OPTION]... [FILE]...

Frequently used options

-b, --body-numbering=STYLE
    use STYLE for numbering body lines
-f, --footer-numbering=STYLE
    use STYLE for numbering footer lines
-h, --header-numbering=STYLE
    use STYLE for numbering header lines

Examples

$ echo -e "one\ntwo\nthree\nfour\nfive\n\nsix" > file
Image:nl01.gif
$ nl file
Image:nl02.gif

.. back to the list of Linux Commands

Personal tools
Linux Commands