feed-image  ISSN 1836-5930

linux

Linux eBooks FREE Download

A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide


Poll

Do you care about your privacy when using a FACEBOOK?
 


Partner Linux Sites: TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux
nl
Article Index
1. Name
2. Synopsis
3. Frequently used options
4. Examples

1. Name

nl [man page] - number lines of files

2. Synopsis

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

3. 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

4. Examples

$ echo -e "one\ntwo\nthree\nfour\nfive\n\nsix" > file 
nl - create a sample file
$ nl file 
nl - add line numbers