How to get specific section inside a MAN page?

manual

Solution

I haven't played with Linux/Unix in a long while, but perhaps you can perform a:

man MANPAGE|a2ps -m > grep -A 1000 SYNOPSIS

Problem

I want to get only specific sections of MAN page inside a shell (or perl) script and print it. For eg: only the SYNOPSIS section of MAN page Is there any standard way to do that? Regards, Anandan

Original source