Originally Posted By: dkmarsh
scroll till you find it

Both more and less (as used by man) have a bunch of features (and i have trouble remembering more than 2 or 3 myself), but...

h gets us the help screen (and q will quit it)

/ the slash starts a search string, so...
/-n and then return would find the first "-n" (case insensitive)

once a search is under way,
n finds the next, and
N (shift-n) finds the previous

esc-u will get rid of the highlighting, if it becomes too distracting.

[check the help (h), it gets way deeper than that.]

It may well confuse matters here that "n" was both the metacharacter (n for next) and also what we were searching for in this example! grin

--

Hmm, it's an interesting kind of "case-insensitive" search: if we stick with lowercase, it will find any-and-all cases... but if we specify uppercase (using caps), then it becomes case-sensitive on us.

Note: before Tiger (or Panther? perhaps), man used more. Ever since however, it uses less. (just means that the text goes away when we q).
[edit#42a: that may have more to do with the bash version than the OS.]

Last edited by Hal Itosis; 06/30/11 01:11 AM.