Sponsored Content
Full Discussion: Adding Color using More
Top Forums UNIX for Dummies Questions & Answers Adding Color using More Post 302677665 by Corona688 on Thursday 26th of July 2012 01:25:09 PM
Old 07-26-2012
Useless Use of Cat Award

Searching the manual page of grep for color, I find the --color option. Usually it only prints color when printing directly to a terminal -- color output would look ugly when dumped into a file -- but can be forced on with --color=always I believe.
This User Gave Thanks to Corona688 For This Post:
 

3 More Discussions You Might Find Interesting

1. OS X (Apple)

Adding Color to bash

Hey everyone, I have come across an issue to where I am trying to create a script which changes the text color with a simple if then statement. I have seen it done with Fedora 8 but when I try and create it using my MacBook Pro running Snow Leopard it doesn't work. Funny thing is, when I use... (2 Replies)
Discussion started by: dachadster13
2 Replies

2. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies

3. 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::HSL(3pm)				User Contributed Perl Documentation				  Convert::Color::HSL(3pm)

NAME
"Convert::Color::HSL" - a color value represented as hue/saturation/lightness SYNOPSIS
Directly: use Convert::Color::HSL; my $red = Convert::Color::HSL->new( 0, 1, 0.5 ); # Can also parse strings my $pink = Convert::Color::HSL->new( '0,1,0.8' ); Via Convert::Color: use Convert::Color; my $cyan = Convert::Color->new( 'hsl:300,1,0.5' ); DESCRIPTION
Objects in this class represent a color in HSL space, as a set of three floating-point values. Hue is stored as a value in degrees, in the range 0 to 360 (exclusive). Saturation and lightness are in the range 0 to 1. CONSTRUCTOR
$color = Convert::Color::HSL->new( $hue, $saturation, $lightness ) Returns a new object to represent the set of values given. The hue should be in the range 0 to 360 (exclusive), and saturation and lightness should be between 0 and 1. Values outside of these ranges will be clamped. $color = Convert::Color::HSL->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 hue,saturation,lightnes containing the three floating-point values in decimal notation. METHODS
$h = $color->hue $s = $color->saturation $v = $color->lightness Accessors for the three components of the color. ( $hue, $saturation, $lightness ) = $color->hsl Returns the individual hue, saturation and lightness components of the color value. SEE ALSO
o Convert::Color - color space conversions o Convert::Color::RGB - a color value represented as red/green/blue AUTHOR
Paul Evans <leonerd@leonerd.org.uk> perl v5.12.3 2011-06-15 Convert::Color::HSL(3pm)
All times are GMT -4. The time now is 09:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy