04-20-2020
Filter valid hexadecimal color codes
So I have a text file containing valid and invalid hexadecimal color codes. Would I need to build a custom c program to filter the valid color codes or would a standard unix command achieve this?
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
Not sure how "for dummies" this question is, but I'd better use understatement...
A. My Environment
==============
I am using RedHat Linux, version 2.6.18-53.el5.
When I type less --version I get:
less 394
Copyright (C) 1984-2005 Mark Nudelman
...
My terminal is configured... (1 Reply)
Discussion started by: Source2Exe
1 Replies
2. UNIX for Dummies Questions & Answers
I want to have all hex color codes in a given stylesheet in uppercase, so #fff should be converted to #FFF for instance. Here is the regular expression I use to match and convert hex color codes to uppercase:
sed -e 's/^#({3}$)|({6}$)/^#({3}$)|({6}$)/' main.css
However, no conversion to uppercase... (6 Replies)
Discussion started by: figaro
6 Replies
3. Programming
I have put some yellow color codes and works well.
I call the funstion using
print_usage(stderr, 0);
I would like to know if there is any way, to store the ansi color codes in variables and then call them inside fprintf.
Or have a format followed by the strings I want to output.
... (5 Replies)
Discussion started by: kristinu
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a file containing color codes:
Fri May 25 17:13:04 2012: Starting MTA: exim4^ Loading cpufreq kernel modules...^How can I display it colorized on a linux terminal? (4 Replies)
Discussion started by: ripat
4 Replies
5. Shell Programming and Scripting
HI
i have two files say test and test1
Test.txt
Code:
Lun01 2TB 1.99TB 99.6%
Lun02 2TB 1.99TB 99.5%
Lun03 2TB 1.99TB 99.5%
Lun04 2TB 1.55TB 89.6%
Code:
Test1.txt
Lun01 2TB 1.99TB 89.5%
Lun02 2TB 1.99TB 99.5%
Lun03 2TB 1.99TB 99.5%
Requirement is to compare... (6 Replies)
Discussion started by: venkitesh
6 Replies
6. Shell Programming and Scripting
Hello,
I have a question on how to filter the data on multiple columns. The problem is I have one table with 25 columns, 4500 rows. I need to filter out the data based on some codes like 'XXXX', I have 25 codes to check on that table. My requirement is that which ever row has this code I... (1 Reply)
Discussion started by: sandeep309
1 Replies
LEARN ABOUT DEBIAN
text2gif
text2gif(1) General Commands Manual text2gif(1)
NAME
text2gif - A program to generate GIF images out of regular text. Text can be one line or multi-line, and is converted using 8 by 8 fixed
font.
USAGE
text2gif [-q] [-s ClrMapSize] [-f FGClr] [-c R G B] [-t Text ] [-h]
This program reads stdin if no text is provided on the command line (-t), and will dump the created GIF file to stdout.
MEMORY REQUIRED
Line.
OPTIONS
[-q]
Quiet mode. Defaults off on MSDOS, on under UNIX. Controls printout of running scan lines. Use -q- to invert.
[-s ClrMapSize]
Explicitly defines the size of the color map of the resulting gif image. Usually the image will be bicolor with fg as color 1,
unless [-f] is explicitly given in case the color map size will be big enough to hold it. However it is sometimes convenient to set
the color map size to certain size while the fg color is small mainly so this image may be merged with another (images must match
color map size).
[-f FG]
Select foreground index (background is always 0). By default it is one and therefore the image result is bicolored. if FG is set
to n then color map will be created with 2^k entries where 2^k > n for minimum k, assuming k <= 8. This color map will be all zeros
except this forground index. This option is useful if this text image should be integrated into other image colormap using their
colors.
[-c R G B]
The color to use as the foreground color. White by default.
[-t "Text"]
One line of text can be provided on the command line. Note you must encapsulate the Text within quotes if it has spaces (The
quotes themselves are not treated as part of the text). If no -t option is provided, stdin is read until end of file.
[-h]
Print one line command line help, similar to Usage above.
NOTES
There is a hardcoded limit of 100 the number of lines.
AUTHOR
Gershon Elber
Man page created by T.Gridel <tgridel@free.fr>, originally written by Eric S. Raymond <esr@thyrsus.com>
giflib-tools text2gif(1)