September 2009
Beginner
942 pages
85h 34m
English
n
[address1[,address2]]n
Read the next line of input into pattern space. The current line is sent to standard output, and the next line becomes the current line. Control passes to the command following n instead of resuming at the top of the script.
In DocBook/XML, titles follow section tags. Suppose you are using a convention where each opening section tag is on a line by itself, with the title on the following line. To print all the section titles, invoke this script with sed -n:
/<sect[1-4]/{
n
p
}