New answers tagged

0

The mention of LESS_TERMCAP_so was incomplete. That is less's special environment variable used to override the termcap so (standout) capability. To use this capability, you have to provide a se (standend) capability as well. The terminfo(5) manual page gives a summary of these features for terminfo (smso/rmso) and termcap (so/se) names: ...


1

I'm not very good with shell escape sequences, but it seems to me that you are. I assume that what you're missing for your use-case, therefore, is to implement if/else-type logic. Here's one way you can do it: sed -e '\ /.*MINOR.*/{ # If .*MINOR.* is matched \ # Code to set MINOR color \ } \ /.*MINOR.*/!{ # If .*MINOR.* ...



Top 50 recent answers are included