Make Less interpret the escape codes in a logfile

Updated . Posted . Visible to the public.

The unix command line tool less is a good choice for browsing logfiles. In the standard configuration, though, it does not interpret the escape sequences used in the rails logfiles. To enable this type:

less -R my_logfile.log

You can also have an alias to save yourself the typing

alias less='less -R'
Last edit
Michael Leimstädtner
Keywords
ansi, colors
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2011-12-08 20:52)