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


.sy command [args ]

Execute Unix command with optional arguments (ditroff only).


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: .sv UNIX in a Nutshell: System V Edition Next: Reference: .ta
Reference: .sv Book Index Reference: .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