Sponsored Content
Full Discussion: Adding Color to bash
Operating Systems OS X (Apple) Adding Color to bash Post 302377383 by vidyadhar85 on Friday 4th of December 2009 12:46:53 AM
Old 12-04-2009
try this way
Code:
echo "\033[1;31m*************`date`*************** \033[m"

 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to get rid of all the weird characters and color on bash shell

Does anyone of you know how to turn off color and weird characters on bash shell when using the command "script"? Everytime users on my server used that command to record their script, they either couldn't print it because lp kept giving the "unknown format character" messages or the print paper... (1 Reply)
Discussion started by: Micz
1 Replies

2. Shell Programming and Scripting

bash: color strings in log file

hello im looking for an easy way to color specific strings in text file. simple example: cat file1 acb 1234 qwer 5678 my goal: cat file1 (color the acb red and the 5678 blue) acb 1234 qwer 5678 cheers (2 Replies)
Discussion started by: modcan
2 Replies

3. Shell Programming and Scripting

Bash - changing a color of a substring

Hello! I need to write a bash script for my university classes, and I came up with an idea of a program that would test the speed of typing - there is some random text that you have to rewrite, and the script measures time, number of mistakes etc. The text would be visible on the screen all... (3 Replies)
Discussion started by: xqwzts
3 Replies

4. Shell Programming and Scripting

color in bash

I have some tcsh scripts that produce output in color, but does not work in bash. Any idea on a solution? echo " \033 (6 Replies)
Discussion started by: kristinu
6 Replies

5. UNIX for Dummies Questions & Answers

Adding Color using More

Daily Stupid Question: When I use a cat with a grep I can see "blind SQL injection vulnerablity" highlighted as red and is easily readable cat file |grep -i 'blind\ SQL\ injection\ vulnerability' When I add a more to view the results page at a time, the color is taken away and is... (3 Replies)
Discussion started by: metallica1973
3 Replies

6. Shell Programming and Scripting

Gawk adding color

I want to know if there is any way to highlight search results using GAWK. So for example: gawk '{IGNORECASE=1;} /^<a/&&/\$/' index.html <a class=author href="http://washingtondc.craigslist.org/search/?areaID=10&amp;amp;catAbb=sss&amp;amp;query=ps vita" title="craigslist washington, DC | all for sale... (3 Replies)
Discussion started by: metallica1973
3 Replies
Convert::Color::CMYK(3pm)				User Contributed Perl Documentation				 Convert::Color::CMYK(3pm)

NAME
"Convert::Color::CMYK" - a color value represented as cyan/magenta/yellow/key SYNOPSIS
Directly: use Convert::Color::CMYK; my $red = Convert::Color::CMYK->new( 0, 1, 1, 0 ); # Can also parse strings my $pink = Convert::Color::CMYK->new( '0,0.3,0.3,0' ); Via Convert::Color: use Convert::Color; my $cyan = Convert::Color->new( 'cmyk:1,0,0,0' ); DESCRIPTION
Objects in this class represent a color in CMYK space, as a set of four floating-point values in the range 0 to 1. CONSTRUCTOR
$color = Convert::Color::CMYK->new( $cyan, $magenta, $yellow, $key ) Returns a new object to represent the set of values given. These values should be floating-point numbers between 0 and 1. Values outside of this range will be clamped. $color = Convert::Color::CMYK->new( $string ) Parses $string for values, and construct a new object similar to the above three-argument form. The string should be in the form cyan,magenta,yellow,key containing the three floating-point values in decimal notation. METHODS
$c = $color->cyan $m = $color->magenta $y = $color->yellow $k = $color->key Accessors for the four components of the color. $k = $color->black An alias to "key" ( $cyan, $magenta, $yellow, $key ) = $color->cmyk Returns the individual cyan, magenta, yellow and key components of the color value. SEE ALSO
o Convert::Color - color space conversions o Convert::Color::CMY - a color value represented as cyan/magenta/yellow AUTHOR
Paul Evans <leonerd@leonerd.org.uk> perl v5.12.3 2011-06-15 Convert::Color::CMYK(3pm)
All times are GMT -4. The time now is 12:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy