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


sub( r , s [, t ])

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

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

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