» Main »
rainbow - colorize console text
Published by Tim Cuthbertson
- Overview
This is a Zero Install feed. To add this program to your Applications menu, choose Zero Install -> Add New Program from the Applications menu. e.g. on Ubuntu:
If you don't see this menu item, install the zeroinstall-injector package from your distribution's repository, or from 0install.net.
Drag the feed's URL to the dialog box that appears. Other environments may use other systems. For example, if you are a ROX desktop user, drag the link to AddApp instead.
Alternatively, to run it from the command-line:
$ 0launch http://gfxmonk.net/dist/0install/rainbow.xml
The 0alias command can be used to create a short-cut to run it again later.
If you don't have the 0launch command, download it from the 0install.net web-site, which also contains documentation about how the Zero Install system works.
- Full name
- Description
Rainbow ======= **Easily colorize logs or commands output using patterns.** :: rainbow [ --COLOR=PATTERN ... | --conf CONF ] COMMAND Examples -------- Using patterns ~~~~~~~~~~~~~~ Just prepend ``rainbow`` with ``COLOR=PATTERN`` associations to your command, for example: - Tail some log file with lines containing ``ERROR`` in red: :: rainbow --red='.*ERROR.*' -- tail -f /var/log/my.log - Ping Google with IP addresses colorized in yellow: :: rainbow --yellow='\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' -- ping www.google.com - Rainbow can also read from STDIN instead of providing a command: :: tail -f /var/log/my.log | rainbow --red='.*ERROR.*' Using confs ~~~~~~~~~~~ Rainbow can read ``COLOR=PATTERN`` associations from config files, which is the most common way to use it. It automatically uses the config file if there is one named after the command name in ``~/.rainbow``, or a builtin one: - Colorize the ``diff`` command output using the builtin config: :: rainbow diff file1 file2 - Start JBoss application server with colorized logs: :: rainbow --config=jboss -- jboss/bin/run.sh run The syntax for writing configs is very simple. See the `builtin configs <https://github.com/nicoulaj/rainbow/blob/master/configs>`_ for examples. Installation ------------ Using packages ~~~~~~~~~~~~~~ - Ubuntu/Debian based distributions: coming soon. - Arch Linux : `AUR/rainbow <https://aur.archlinux.org/packages.php?ID=54146>`_ / `AUR/rainbow-git <https://aur.archlinux.org/packages.php?ID=54147>`_. Building from sources ~~~~~~~~~~~~~~~~~~~~~ You can build from sources this way: :: git clone git://github.com/nicoulaj/rainbow.git cd rainbow sudo python setup.py install License ------- This project is a fork of `Linibou's colorex <http://bitbucket.org/linibou/colorex>`_. It is is released under the terms of the `GNU General Public License <http://www.gnu.org/licenses/gpl.html>`_. See ``COPYING`` for details.
- Homepage
- Available versions
The list below is just for information; Zero Install will automatically select one of these versions for you.
Version Released Stability Platform Download 2.5.0-post1 2012-04-18 Any Download (8337 bytes) 2.5.0-post2 2012-04-19 Any Download (8424 bytes) Non-Zero Install packages provided distributions can also provide this interface:
Distribution Package name Debian|RPM ___ - Required libraries
The list below is just for information; Zero Install will automatically download any required libraries for you.