Tag Info

New answers tagged

1

Man` is calling Less; the only control at the man level is choosing which options to call Less with. Less's search case-sensitivity is controlled by two options. If -I is in effect, then searches are case-insensitive: either a or A can be used to match both a and A. If -i is in effect but not -I, then searches are case-insensitive, but only if the pattern ...


0

"Is there anyway to force lowercase x to match only lowercase x when using man?" Here's one way man -Tascii manpage |less I don't know the gory details, but the roff processing is performing markup and the pager seems to be matching the un-marked up text, even though it is displaying the marked up text. Very confusing, hopefully an nroff guru can explain ...


1

This is how less's -i (command line switch) "case insensitive" mode works (i.e., it is still sensitive for upper case). As Gilles points out, using this is compiled into man-db. In addition to the ways indicated in Gilles answer WRT setting an alias +-i or a custom MANLESS, you can toggle strict case matching once the man page opens up with -i (which turns ...


3

A long long time ago, several programs understood the command line argument +N (e.g. +42) to mean “start at line N” (not “skip N lines”, but “skip N-1 lines”, because the first line is line 1). The oldest trace I can find is in tail in Unix V7, but I don't know for sure that this is where the usage started. An important program with the same option is more. ...


3

It's less specific (you can guess this with the quotes around the operator to avoid the shell interpreting it). The + argument tells less to apply this command after opening the file, in this case > which is the keystroke for going to the end of the file. You can try this out by opening some (long) file with less and hitting >. +> is just a ...


7

Trying to run source-highlight as suggested in the linked question produces this error: $ source-highlight -o STDOUT -i .bashrc --out-format=esc source-highlight: could not find a language definition for input file .bashrc That's because .bashrc is not recognized automatically by source-highlight, a quick look through its manual shows that it has the -s ...



Top 50 recent answers are included