Colored Bash man pages and Log files


Below you can find bash codes which you can use with man pages or while reading log files:

If you are using less application for viewing man pages you can add below variables to your .bashrc file. After that reload .bashrc variables with command: source /home/user/.bashrc and you will see colored man pages.

For log files use perl syntax with your combined regex:

Last colored trick. Use grep command with —color switch.

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *