note
Cirollo
<code>
perl -e 'open(FILE, "/usr/bin/man ssh | "); while(<FILE>) { print if /SYNOPSIS/ }'
</code>
Works great, on Solaris. Maybe the fancy formatting (bold fonts etc) of the man page on your system is what is getting you hung up? Having weird terminal control characters in the output from man to do font decorations might be making your match fail.
106343
106343