ccecho man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

CCECHO(1)		    Conditional Color Echo		     CCECHO(1)

NAME
       ccecho - ccecho (conditional color echo) let's you use colored output
       for STDOUT while using regular output for log files, pipes and scripts

SYNOPSIS
       ccecho LEVEL MESSAGE

DESCRIPTION
       Prints a colored message string to STDOUT using bash color codes. The
       color depends on one of the LEVEL keyword. When the SHELL environment
       variable COLOR is set to either "0" or "no" no color output is
       generated.

       The main purpose of this script is to provide an easy method to
       generate colored output when the output should go to STDOUT, and
       regular output (using echo -e) for log files, pipes and scripts (by
       exporting COLOR=0).

PARAMETERS
       ccecho takes two parameters, both are mandatory:

   LEVEL
       Determines which color is used. Must be used as the first parameter. Is
       ignored, when the ebvironment variable COLOR is set to "0" or "no".

	   error   ->  bold red
	   info	   ->  purple
	   normal  ->  no color
	   result  ->  green
	   warn	   ->  red

   MESSAGE
       The message to be printed. Needs to be quoted using double quotes. You
       may use sequences supported by echo (1) such as \n to insert a newline
       and \t to insert a tab.

ENVIRONMENT
       COLOR
	   When set to "0" or "no", ccecho will act as plain echo -e doing no
	   colored output.

SEE ALSO
       echo(1)

AUTHOR
       Frank Sundermeyer <fsundermeyer@opensuse.org>
	   Developer

1.0				  09/28/2013			     CCECHO(1)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net