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


[address ] g [! ]/ pattern / [commands ]

Execute commands on all lines which contain pattern or, if address is specified, on all lines within that range. If commands are not specified, print all such lines. Add a ! to execute commands on all lines not containing pattern . See also v .



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

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