home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


n

[address1 [, address2 ]]n

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

Example

In the ms macros, a section header occurs on the line below an .NH macro. To print all lines of header text, invoke this script with sed -n :

/^\.NH/{
n
p
}


Previous: Reference: l UNIX in a Nutshell: System V Edition Next: Reference: N
Reference: l Book Index Reference: N

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System