[CentOS] Grep: show me this line and the next N lines?
Thomas Harold
thomas-lists at nybeta.com
Tue May 31 14:37:39 UTC 2011
On 5/31/2011 3:43 AM, Dotan Cohen wrote:
> On Tue, May 31, 2011 at 01:26, John R. Dennison<jrd at gerdesas.com> wrote:
>> On Tue, May 31, 2011 at 01:10:40AM +0300, Dotan Cohen wrote:
>>> Thanks, all. I did actually look at the grep manpage but after a few
>>> screenfuls it became tl;dr and I started just skimming. I suppose that
>>> I skimmed too fast!
>>
>> Um....
>>
>> It's the first option described.
>>
>
> I see now that the server's grep manpage (CentOS) does in fact put it
> right there at the top. I usually pull up manpages on localhost, not
> what I'm SSHing into, and on this Debian-Derived distro it is buried
> halfway down the third page of nine. That is interesting, and I'm sure
> that there is a lesson to be learned from that!
>
One help might be to use the slash key to search the man page.
/lines[enter]
Then use 'n' or 'N' to search forward/backward.
More information about the CentOS
mailing list