Sponsored Content
Top Forums Shell Programming and Scripting Comma Seperated List of Values Post 100020 by vino on Thursday 23rd of February 2006 03:04:24 AM
Old 02-23-2006
Instead of -w, try this

Code:
grep "\<$look\>"

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to load comma seperated values file (*.csv) into Oracle table

Hi all I need to input values in a .csv file into my Oracle table running in Unix, I wonder what would be the command to do so... The values are recorded in an excel file and I tried using a formatted text file to do so but failed because one of the field is simply too large to fit in the... (5 Replies)
Discussion started by: handynas
5 Replies

2. UNIX for Advanced & Expert Users

How to load comma seperated values file (*.csv) into Oracle table

Hi all I need to input values in a .csv file into my Oracle table running in Unix, I wonder what would be the command to do so... The values are recorded in an excel file and I tried using a formatted text file to do so but failed because one of the field is simply too large to fit in the... (4 Replies)
Discussion started by: handynas
4 Replies

3. Shell Programming and Scripting

change list to comma seperated items

I have a list of servers in a file called serverlist like this server1 server2 server3 i need to have them (with no trailing comma, the program does not like that) server1,server2,server3 so far i have been using HOSTS=/tmp/serverlist HOSTS=${HOSTS:-$(grep -Ev "^#|^$"... (2 Replies)
Discussion started by: insania
2 Replies

4. UNIX for Dummies Questions & Answers

Search and then concat 4m other file (comma seperated)

My query is now a bit simplified. file1.txt names; ID; value1 ; values N; ABC; 1 ; a18 ; ... CDF; 2 ; b16 ; .. ABC; 1 ; c13 ; ...... EFG; 3 ;d12 ; ... file2.txt ID(Unique);smVals; smVal1; smVal N; 1; ...; ...; ...; 2; ..; ..; ..; 3; ..; ..; ..; ... (1 Reply)
Discussion started by: szchmaltz
1 Replies

5. Shell Programming and Scripting

Removing blank lines from comma seperated and space seperated file.

Hi, I want to remove empty/blank lines from comma seperated and space seperated files Thanks all for help (11 Replies)
Discussion started by: pinnacle
11 Replies

6. Shell Programming and Scripting

perl help for comma seperated output

Hi, how can i make a comma seperated output summary. i attached the sample log file. I have to capture these data in the log file. Arcotid Time Stamp, Username, Success, Failure, Error Code, Error Message In the log snippet the userID can be found in- Code Arcot Native Server:... (3 Replies)
Discussion started by: namishtiwari
3 Replies

7. Shell Programming and Scripting

Script to append a value seperated by comma

I have a file like below. How can I add a new value after moss separated by a comma. This adding script should work in such a way that each time i pass a value it should be added one after the other separated by commas. hru:122: hello:123:john,philip,mary,kp,moss hi:124: bye:125: Can... (7 Replies)
Discussion started by: Tuxidow
7 Replies

8. Shell Programming and Scripting

Passing Comma seperated arguments

Hi How to takes coma seperated arguments and and parsing each argument to varaiable that has used further in the script. (1 Reply)
Discussion started by: Reddy482
1 Replies

9. Shell Programming and Scripting

Convert comma seperated file to line seperated.

Hi, I have data like this. 1,2,3,4 Output required: 1 2 3 4 I am trying to use tr function but getting error. Help is appreciated. (6 Replies)
Discussion started by: pinnacle
6 Replies

10. Shell Programming and Scripting

awk comma seperated value within double quote

Hi, I have a data file separated by comma, data enclosed by "" head file.txt "HD","Sep 13 2016 1:05AM","0001" "DT","273093045","192534" "DT","273097637","192534" .. I want to get the 3rd column value (0001) to be assigned to my variable I tried FILE_VER=`cat file.txt | awk... (2 Replies)
Discussion started by: Prasannag87
2 Replies
Convert::Color::RGB(3pm)				User Contributed Perl Documentation				  Convert::Color::RGB(3pm)

NAME
"Convert::Color::RGB" - a color value represented as red/green/blue SYNOPSIS
Directly: use Convert::Color::RGB; my $red = Convert::Color::RGB->new( 1, 0, 0 ); # Can also parse strings my $pink = Convert::Color::RGB->new( '1,0.7,0.7' ); Via Convert::Color: use Convert::Color; my $cyan = Convert::Color->new( 'rgb:0,1,1' ); DESCRIPTION
Objects in this class represent a color in RGB space, as a set of three floating-point values in the range 0 to 1. For representations using 8- or 16-bit integers, see Convert::Color::RGB8 and Convert::Color::RGB16. CONSTRUCTOR
$color = Convert::Color::RGB->new( $red, $green, $blue ) 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::RGB->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 red,green,blue containing the three floating-point values in decimal notation. METHODS
$r = $color->red $g = $color->green $b = $color->blue Accessors for the three components of the color. ( $red, $green, $blue ) = $color->rgb Returns the individual red, green and blue color components of the color value. $mix = $color->alpha_blend( $other, [ $alpha ] ) Return a new color which is a blended combination of the two passed into it. The optional $alpha parameter defines the mix ratio between the two colors, defaulting to 0.5 if not defined. Values closer to 0 will blend more of $color, closer to 1 will blend more of $other. $measure = $color->dst_rgb( $other ) Return a measure of the distance between the two colors. This is the unweighted Euclidean distance of the three color components. Two identical colors will have a measure of 0, pure black and pure white have a distance of 1, and all others will lie somewhere inbetween. $measure = $color->dst_rgb_cheap( $other ) Return a measure of the distance between the two colors. This is the sum of the squares of the differences of each of the color components. This is part of the value used to calculate "dst_rgb", but since it involves no square root it will be cheaper to calculate, for use in cases where only the relative values matter, such as when picking the "best match" out of a set of colors. It ranges between 0 for identical colours and 3 for the distance between pure black and pure white. EXAMPLES
Generating Gradients The "alpha_blend" method can be used to generate a smooth gradient between two colours. use Convert::Color; my $blue = Convert::Color->new("vga:blue"); my $cyan = Convert::Color->new("vga:cyan"); say $blue->alpha_blend( $cyan, $_/10 )->as_rgb8->hex for 0 .. 10 SEE ALSO
o Convert::Color - color space conversions o Convert::Color::HSV - a color value represented as hue/saturation/value o Convert::Color::HSL - a color value represented as hue/saturation/lightness AUTHOR
Paul Evans <leonerd@leonerd.org.uk> perl v5.12.3 2011-06-15 Convert::Color::RGB(3pm)
All times are GMT -4. The time now is 11:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy