> 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.