184 Part II . Getting Around in Linux (Web design programs)
184 Part II . Getting Around in Linux A logical page consists of three sections: header, body, and footer. Any of the sections can be empty. Each can be numbered in a different style from the others. An empty line of output replaces a section separator. Any text that comes before the first section separator string in the input file is considered to be part of a body section, so the nl utility treats a file that contains no section delimiters as a single body section. Several options can be used to customize the output gained using this utility, and several of those options are covered in Table 4-16. Table 4-16 Options Used with nl Option Use -t Numbers only nonempty lines. -n Does not number lines (the default for headers and footers). -i NUMBER Increments line numbers by NUMBER with the default value of one. -p Does not reset line numbers at the start of each logical page. -s STRING Adds the STRING after the added line number. -v NUMBER Sets the initial line number on each logical page to NUMBER. -w NUMBER Specifies the NUMBER of character spaces to reserve for line numbers. The default value is six. -a Numbers all lines. Below is an example of the use the nl utility. In this example the nicks file is printed with a number corresponding to each line. # nl nicks 1 Bammage 2 Rexmortis 3 Jackyl 4 Dragonstr 5 Alchemist 6 Just_joe 7 Johan 8 Sting 9 Dave 10 Thomas 11 Netchick 12 Netjunkie 13 Pri 14 Zaphod 15 Lordram
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.