Code Monkey home page Code Monkey logo

clerr's Introduction

clerr(1) - colorize error output

Version 1.0.5, July 2017

clerr [-1hV] [-c COLOR] COMMAND [ARGUMENTS...]

Description

clerr is a command line tool which executes another COMMAND and colorizes all error output (on stderr) of that program while its normal output (on stdout) will be printed in the default colors.

Installation

$ make
# make install

This will compile the binary and copy it to /usr/local/bin/clerr. The man page will be copied to /usr/local/share/man/man.1/clerr.1.gz.

Options

  • -1
    All output will be printed on stdout only, even error output (which will still get colorized).

  • -c COLOR
    Sets the color for error output. Default is red. Valid colors and their valid abbreviations are:

    red/re/rd, green/gr/gn, blue/bl, yellow/ye/yw, cyan/cy/cn, white/wh.

  • -h
    Prints a short help summary and exits.

  • -V
    Prints the program version and exits.

Exit Status

clerr will exit with the same status as COMMAND, if it was executed successfully. If the command was terminated due to a signal, clerr will kill itself with the same signal. Otherwise, clerr will return one of these special exit status values:

  • 1
    invocation error (e.g. syntax error or unknown option)
  • 124
    COMMAND could not be executed
  • 125
    internal error (e.g. could not fork)

Examples

  • clerr cat /etc/group-
    This will display the file /etc/group- in standard colors. If the file does not exist or the caller is not permitted to read this file, the corresponding error message (something like "cat: /etc/group-: No such file or directory") will be printed in red.
  • clerr make
    Run make in the current directory. Any compiling errors will be printed in red.

License

GNU GPL v3

Author

Maximilian Eul <[email protected]>

clerr's People

Contributors

mle86 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.