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

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: P Chapter 10
The Sed Editor
Next: Reference: r






Quit when address is encountered. The addressed line is first written to output (if default output is not suppressed), along with any text appended to it by previous a or r commands.


Delete everything after the addressed line:

/Garbled text follows:/q

Print only the first 50 lines of a file:


Previous: Reference: P UNIX in a Nutshell: System V Edition Next: Reference: r
Reference: P Book Index Reference: r

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