In all the tools to get colors with less command: -R, Pygments, GNU Source-highlight, vless, ... ccze make me sastified with below command:ccze -A < /path/to/log/file | less -Rbut Shift+g doesn't work as expected:I must press Ctrl+c firstfollow by Shift+g, but it doesn't go to the endof fileDid I miss something?
Get colors in less command with ccze: Shift + g doesn't go to the end of file?
colors;less
I see similar behavior as you describe when I try this on /var/log/syslog which is 2.1MB in size and around 22500 lines long. Suspecting that ccze was partly to blame for it, I ran:time ccze -A /var/log/syslog > fooWhich showed that ccze takes around 55 seconds on my 1.2GHz machine to generate the colorized output. I expect this is what makes less hang, less cannot go to the end of the output before ccze has finished generating it, so less seems to hang.Alternatives to make this work better:Select output with grep, sed etc. and then pipe into ccze.Pre-colorize file and run less on that.