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: file Chapter 9
The Ex Editor
Next: Reference: insert
 

global

[

address

] 

g

[

!

]

/



pattern



/

[

commands

]

Execute commands on all lines that contain pattern or, if address is specified, on all lines within that range. If commands are not specified, print all such lines. If ! is used, execute commands on all lines that don't contain pattern . See v .

Examples

:g/Unix/p
:g/Name:/s/tom/Tom/


Previous: Reference: file UNIX in a Nutshell: System V Edition Next: Reference: insert
Reference: file Book Index Reference: insert

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