This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: man redirect error
On Wed, 2012-01-04 at 08:51 -0600, Thrall, Bryan wrote:
> Perhaps the OP was looking for something like apropos or whatis?
>
> Given that man already pipes its output through a pager, the OP could just use the MANPAGER environment variable to do what he wants:
>
> $ MANPAGER=head man gcc
> GCC(1) GNU GCC(1)
>
>
>
> NAME
> gcc - GNU project C and C++ compiler
>
> SYNOPSIS
> gcc [-c|-S|-E] [-std=standard]
> [-g] [-pg] [-Olevel]
>
> Hope this helps,
> --
> Bryan Thrall
> Principal Software Engineer
> FlightSafety International
> bryan.thrall@flightsafety.com
>
>
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=apropos