RE: man redirect error

2012-01-06 Thread Nellis, Kenneth
On Wed, 2012-01-04 at 08:51 -0600, Thrall, Bryan wrote: Perhaps the OP was looking for something like apropos or whatis? snip/ In this case, the OP was simply using head as an example to show how piping the output of man was generating an unexpected error. As you all know, Unix is rich in

Re: man redirect error

2012-01-04 Thread Reid Thompson
On Tue, 2012-01-03 at 15:30 -0600, Nellis, Kenneth wrote: Thought maybe someone would be interested in the following error. $ man gcc | head GCC(1)GNU GCC(1) NAME gcc - GNU project C and C++ compiler SYNOPSIS gcc [-c|-S|-E]

RE: man redirect error

2012-01-04 Thread Thrall, Bryan
Reid Thompson wrote on 2012-01-04: On Tue, 2012-01-03 at 15:30 -0600, Nellis, Kenneth wrote: Thought maybe someone would be interested in the following error. $ man gcc | head GCC(1)GNU GCC(1) NAME gcc - GNU project C and C++ compiler

RE: man redirect error

2012-01-04 Thread Reid Thompson
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)

RE: man redirect error

2012-01-04 Thread Thrall, Bryan
Reid Thompson wrote on 2012-01-04: 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: