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


0

You can do that using the ANSI control characters: some-command | sed 's/symbol-sequence/^[[0;32;2m symbol-sequence^[[0;0m/' The characters ^[ are not a regular ^ followed by a regular [. It is an unprintable character. You can get it on most terminal by typing Ctrl-v Ctrl-Esc. The second [ is a real [ though. If you prefer full-ascii, here is a ...


5

Have you tried ? fc-list | grep -i "media" Also give a try to fc-scan, fc-match


3

The grep command is designed to show only matching lines of a given files. With the use of -C option it is possible to show not only the matching line(s) but some lines before and after it. So to have the 3 lines before and after the line you want: $ grep -C 3 "26/Mar/2014:16:35:13 +0000" access.log You can also tune more precisely the number of lines ...



Top 50 recent answers are included