[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [groff] mom manpage

From: Tadziu Hoffmann
Subject: Re: [groff] mom manpage
Date: Wed, 5 Dec 2018 21:46:55 +0100
User-agent: Mutt/1.9.1 (2017-09-22)

> I want to read an answer from stdin into a variable, but - as
> I do not shell programming every day - do not remember how.
> Searching for "read" in the man page leads me to the wanted
> position after about 200 times hitting the "n" key. Next I try
> " read ". Still about 50 key hits.
> Try man bash | grep read | wc

I would have done the following:

  man bash
  (in less:) /read.*variable[Enter]nn

(the number of "n"s might depend on the terminal size).

This is an example where regular expressions are useful.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]