Different Colors for Control Characters and Pattern Matches in less

This page answers questions like these:

Get less to Show Control and Binary Characters in Different Colors From Search Matches:

Try each of the following to see which one you like best:

LESSBINFMT="*k<%02X>" less FILE
LESSBINFMT="*d<%02X>" less FILE
LESSBINFMT="*u<%02X>" less FILE

Once you decide which one you like, put one of these in your  .profile  or  .bashrc  file.

export LESSBINFMT="*k<%02X>"
export LESSBINFMT="*d<%02X>"
export LESSBINFMT="*u<%02X>"

Related Links:
Make Less Keep Reading a Growing File
Show Colors in Less

Home  >  Linux / Unix  >  Different Colors for Control Characters and Pattern Matches in less


Tags: less, less colors, less colours, control character, binary character, linux, unix

Src: less-control-character-colors.txt
Dst: Linux-Unix/change-control-character-colors-in-less.htm
Ads: 2