UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: .svChapter 12
nroff and troff
Next: Reference: .ta
 

.sy

.sy command [args]

Execute Unix command with optional arguments (ditroff only).

Example

Search for the first argument; accumulate in a temp file:

.sy sed -n 's/\\$1/Note: &/p' list >> /tmp/notesfile

(Note the extra backslash in \\$1. This example occurs inside a macro definition. One backslash is stripped off when the macro is first read, so the second one is needed for it to be evaluated correctly when the macro is executed.)


Previous: Reference: .svUNIX in a Nutshell: System V EditionNext: Reference: .ta
Reference: .svBook IndexReference: .ta

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