.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.)