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: x Chapter 10
The Sed Editor
Next: 10. The Sed Editor
 

y

[

address1

][

,



address2

]

y/



abc



/



xyz



/

Translate characters. Change every instance of a to x , b to y , c to z , etc.

Example

# Change item 1, 2, 3 to Item A, B, C ...
/^item [1-9]/y/i123456789/IABCDEFGHI/


Previous: Reference: x UNIX in a Nutshell: System V Edition Next: 10. The Sed Editor
Reference: x Book Index 10. The Sed Editor

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