08-03-2012
Ok, I'll have a closer look... thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello, I'm absolutely new to this world... but I've a problem with a terminal connected via PuTTY (or Termlite) to an AIX 5.1 application.
The problem: I need to paste from clipboard a text containing both input text strings and special keys as ESC, Arrows and so on, to execute in the AIX... (1 Reply)
Discussion started by: Daniele11
1 Replies
2. Shell Programming and Scripting
I have 2 text files, both have one simple, single column. The 2 files might be the same length, or might not, and if not, it's unknown which one would be longer.
For this example, file1 is longer:
---file1
Joe
Bob
Mary
Sally
Fred
Elmer
David
---file2
Tomato
House
Car... (3 Replies)
Discussion started by: cajunfries
3 Replies
3. Shell Programming and Scripting
Pls help me on this. I have to 2 files like shown below:
File 1
TAIJM
AXPKIM
BEMGW
File 2
PXMPA
JYGE
IMJP
What i want to do is to paste both file to a new file on thir format:
File 3
TAIJM PXMPA
AXPKIM JYGE
BEMGW IMJP
I tried cat and print, but it doesn't work. Cn... (6 Replies)
Discussion started by: kingpeejay
6 Replies
4. Solaris
Hello,
Can anybody please tell me how we can copy and paste text from a word document into a text file that we are editing in vi? Is it possible to do that while we are editing the text file in vi in insert mode?
Thanks, (3 Replies)
Discussion started by: Pouchie1
3 Replies
5. Shell Programming and Scripting
I have this text file with a very large number of columns (10,000+) and I want to move the first column to the position of the six column so that the text file looks like this:
Before cutting and pasting
ID Family Mother Father Trait Phenotype
aaa bbb ... (5 Replies)
Discussion started by: evelibertine
5 Replies
6. Shell Programming and Scripting
Hello Guys,
I know the command echo " " > filenamehere ; would erase everything in the document. Can the same be done, to paste words below certain text?
For example, lets say i want to paste a line below the line Server name: in apache.conf . What should be added in the script? (8 Replies)
Discussion started by: xxxx
8 Replies
7. Shell Programming and Scripting
Hello ppl
I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt
Now I have to join (paste in unix) this A2.txt with external file A3.txt to form
output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Discussion started by: etldev
25 Replies
8. Shell Programming and Scripting
I have a really big XML file. I need copy the value of one tag inside another one tag. I try to publish one example.
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1">Rai 1</channel>
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1 +2HD">Rai 1... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies
9. Shell Programming and Scripting
Hi I have a text file with lines beginning with 71303, 71403, 71602,
I need to copy the 10 digit text at position 30 on lines beginning with 71303 (5500011446) to position 99 on every line beginning with 71602 (see example below),
There may be many 71303 lines but I need the text copying to... (2 Replies)
Discussion started by: firefox2k2
2 Replies
10. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT DEBIAN
convert::color::rgb8
Convert::Color::RGB8(3pm) User Contributed Perl Documentation Convert::Color::RGB8(3pm)
NAME
"Convert::Color::RGB8" - a color value represented as red/green/blue in 8-bit integers
SYNOPSIS
Directly:
use Convert::Color::RGB8;
my $red = Convert::Color::RGB8->new( 255, 0, 0 );
# Can also parse strings
my $pink = Convert::Color::RGB8->new( '255,192,192' );
# or
$pink = Convert::Color::RGB8->new( 'ffc0c0' );
Via Convert::Color:
use Convert::Color;
my $cyan = Convert::Color->new( 'rgb8:0,255,255' );
DESCRIPTION
Objects in this class represent a color in RGB space, as a set of three integer values in the range 0 to 255; i.e. as 8 bits.
For representations using floating point values, see Convert::Color::RGB. For representations using 16-bit integers, see
Convert::Color::RGB16.
CONSTRUCTOR
$color = Convert::Color::RGB8->new( $red, $green, $blue )
Returns a new object to represent the set of values given. These values should be integers between 0 and 255. Values outside of this range
will be clamped.
$color = Convert::Color::RGB8->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 integer values in decimal notation. It can also be given in the form of a hex encoded string, such as would be
returned by the "rgb8_hex" method:
rrggbb
METHODS
$r = $color->red
$g = $color->green
$b = $color->blue
Accessors for the three components of the color.
( $red, $green, $blue ) = $color->rgb8
Returns the individual red, green and blue color components of the color value in RGB8 space.
$str = $color->hex
Returns a string representation of the color components in the RGB8 space, in a convenient "RRGGBB" hex string, likely to be useful HTML,
or other similar places.
$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.
$mix = $color->alpha8_blend( $other, [ $alpha ] )
Similar to "alpha_blend" but works with integer arithmetic. $alpha should be an integer in the range 0 to 255.
$measure = $color->dst_rgb8( $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_rgb8_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_rgb8", 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*(255^2) for the distance between pure black and pure white.
SEE ALSO
o Convert::Color - color space conversions
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.12.3 2011-06-15 Convert::Color::RGB8(3pm)