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: srand Chapter 11
The Awk Scripting Language
Next: Reference: substr
 

sub



sub(



r



,


s


,


t


)

Substitute s for first match of the regular expression r in the string t . Return 1 if successful; 0 otherwise. If t is not supplied, defaults to $0. {N}


Previous: Reference: srand UNIX in a Nutshell: System V Edition Next: Reference: substr
Reference: srand Book Index Reference: substr

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