UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: unmapChapter 9
The Ex Editor
Next: Reference: version
 

v

[address] v/pattern/[commands]

Execute commands on all lines not containing pattern. If commands are not specified, print all such lines. v is equivalent to g!.

Example

:v/#include/d	Delete all lines except "#include" lines


Previous: Reference: unmapUNIX in a Nutshell: System V EditionNext: Reference: version
Reference: unmapBook IndexReference: version

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