04-09-2012
@siva.hardwork: How do you want hexc.txt to look like? Do you want only the hex values or do you want the lines from hex.txt containing hex values?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to search a file for a string and then if the string is found I need the line that the string is on - but also the previous two lines from the file (that the pattern will not be found in)
This is on solaris
Can you help? (2 Replies)
Discussion started by: frustrated1
2 Replies
2. UNIX for Advanced & Expert Users
Hi need to know if we can write a shell script to find files for a particular format;s ie both .csv and .txt in a particular folder and then copy them to a new folder on a dialy basis. Does anyone know how this can be accomplished?
Thanks,
Sandeep (20 Replies)
Discussion started by: bsandeep_80
20 Replies
3. UNIX for Dummies Questions & Answers
Compete noob question....
I need a script to search through a directory and find files containing text string abcde1234 for example and then copy that file with that text string to another directory
help please :eek: (9 Replies)
Discussion started by: imeadows
9 Replies
4. Shell Programming and Scripting
Hi All,
server16.na.in.com UNKNOWN ftpuser "CWD" dms-imrm/Delasco_Invoices_DayForward_Scan" 250 -
server16.na.in.com UNKNOWN ftpuser "PWD" 257 -
server16.na.in.com UNKNOWN ftpuser "CWD Private" 250 -
server16.na.in.com UNKNOWN ftpuser "PWD" 257 -
server16.na.in.com UNKNOWN... (7 Replies)
Discussion started by: Tuxidow
7 Replies
5. Shell Programming and Scripting
I am a newbie and would like some help with the following -
Trying to search fileA for a string similar to -
AS11000022010 30.4 31.7 43.7 53.8 60.5 71.1 75.2 74.7 66.9 56.6 42.7 32.5 53.3
I then want to replace that string with a string from fileB - ... (5 Replies)
Discussion started by: ncwxpanther
5 Replies
6. Shell Programming and Scripting
Hi need help with a script or command
My requirement is
- I need to do a "ls -ltr tcserver*.syslog" files in /tmp, direct the output to a file
ls -ltr tcserv*.syslog | grep "Jan 31" | awk '{printf "\n" $9}' > jandat.logs
-Then open each file in above list and search for string/word,... (4 Replies)
Discussion started by: karghum
4 Replies
7. Shell Programming and Scripting
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
Discussion started by: swayam123
4 Replies
8. Shell Programming and Scripting
Hi,
I have two files file1.txt and file2.txt. Please see the attachments.
In file2.txt (which actually is a diff output between two versions of file1.txt.), I extract the pattern corresponding to 1172c1172. Now ,In file1.txt I have to search for this pattern 1172c1172 and if found, I have to... (9 Replies)
Discussion started by: saurabh kumar
9 Replies
9. UNIX for Beginners Questions & Answers
Hi all,
I have files and have a missing record. I need copy the existing record and mark those values up. For example in the below file 11048 is missing. I need to copy 22001 and copy those create the values for 11048. I have 120 set of files and I need to do that on all files.
Note the... (8 Replies)
Discussion started by: arunkumar_mca
8 Replies
10. UNIX for Beginners Questions & Answers
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
LEARN ABOUT DEBIAN
color::library::color
Color::Library::Color(3pm) User Contributed Perl Documentation Color::Library::Color(3pm)
NAME
Color::Library::Color - Color entry for a Color::Library color dictionary
METHODS
$id = $color->id
Returns the id of the color
A color id is in the format of <dictionary_id:color_name>, e.g.
svg:aliceblue
x11:bisque2
nbs-iscc-f:chromeyellow.66
vaccc:darkspringyellow
$name = $color->name
Returns the name of the color, e.g.
aliceblue
bisque2
chromeyellow
darkspringyellow
$title = $color->title
Returns the title of the color, e.g.
aliceblue
bisque2
chrome yellow
Dark Spring-Yellow
$dictionary = $color->dictionary
Returns the Color::Library::Dictionary object that the color belongs to
$hex = $color->hex
Returns the hex value of the color, e.g.
ff08ff
eed5b7
eaa221
669900
Note that $hex does NOT include the leading #, for that use $color->html, $color->css, or $color->svg
$html = $color->html
$css = $color->css
$svg = $color->svg
Returns the hex value of the color with a leading #, suitable for use in HTML, CSS, or SVG documents, e.g.
#ff08ff
#eed5b7
#eaa221
#669900
$value = $color->value
Returns the numeric value of the color, e.g.
15792383
15652279
15376929
6723840
($r, $g, $b) = $color->rgb
Returns r, g, and b values of the color as a 3 element list (list context), e.g.
(240, 248, 255)
$rgb = $color->rgb
Returns r, g, and b values of the color in a 3 element array (scalar context), e.g.
[ 240, 248, 255 ]
$color = Color::Library::Color->new( id => $id, name => $name, title => $title, value => $value )
$color = Color::Library::Color->new( { id => $id, name => $name, title => $title, value => $value } )
$color = Color::Library::Color->new( [[ $id, $name, $title, $rgb, $hex, $value ]] )
Returns a new Color::Library::Color object representing the specified color
You probably don't want/need to call this yourself
FUNCTIONS
$hex = Color::Library::Color::rgb2hex( $rgb )
$hex = Color::Library::Color::rgb2hex( $r, $g, $b )
Converts an rgb value to its hex representation
$value = Color::Library::Color::rgb2value( $rgb )
$value = Color::Library::Color::rgb2value( $r, $g, $b )
Converts an rgb value to its numeric representation
$rgb = Color::Library::Color::value2rgb( $value )
($r, $g, $b) = Color::Library::Color::value2rgb( $value )
Converts a numeric color value to its rgb representation
($r, $g, $b) = Color::Library::Color::parse_rgb_color( $hex )
($r, $g, $b) = Color::Library::Color::parse_rgb_color( $value )
Makes a best effort to convert a hex or numeric color value to its rgb representation
perl v5.14.2 2011-12-07 Color::Library::Color(3pm)