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:
However, no conversion to uppercase takes place. How can I achieve this?
Is it possible to combine a regular expression with a aritmetical expression? For example, taking a 8-numbers caracter sequece and casting each output of a grep, comparing to a constant.
THX! (2 Replies)
hello all.. I'm a bit new to this site.. and I hope to learn alot.. but I've been having a hard time figuring this out. I'm horrible with regular expressions.. so any help would be greatly appreciated.
I have a file with a list of names like this: LASTNAME, FIRSTNAME, MIDDLEINITIAL
how can... (5 Replies)
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)
CA_RELEASE has a value of 6. I need to check if that this is a numeric value. if not error.
source $CA_VERSION_DATA
if * ]
then
echo "CA_RELESE $CA_RELEASE is invalid"
exit -1
fi
+ source /etc/ncgl/ca_version_data
++ CA_PRODUCT_ID=samxts
++ CA_RELEASE=6
++ CA_WEEK_NO=7
++... (3 Replies)
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
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)
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)
Hello All,
I'm trying to extract the lines between two consecutive elements of an array from a file.
My array looks like:
problem_arr=(PRS111 PRS213 PRS234)
j=0
while } ]
do
k=`expr $j + 1`
sed -n "/${problem_arr}/,/${problem_arr}/p" problemid.txt
---some operation goes... (11 Replies)
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
LEARN ABOUT DEBIAN
colortest-python
colortest-python(1) User Commands colortest-python(1)NAME
colortest-python - Display color test chart and convert between color values
SYNOPSIS
colortest-python
DESCRIPTION
Displays 256, 88 and 16 color tables depending on what the terminal supports. Also provides for conversion between 256 and 88 color values.
The program automatically detects 8, 16, 88, 256 color capabilities (via ncurses) and displays the appropriate color charts. Program can
display the colors as blocks or 2d cubes optionally with color values overlaid in int or hex values, it can show the full rgb text string
and show the display with a vertical (default) or horizontal orientation.
In addition to the color charts it can also convert between 256 and 88 color values. This can be useful when converting various terminals
like between urxvt and xterm-256.
The goal of this program was to provide the functionality of all the various Perl and sh scripts in one place with some bells and whistles.
OPTIONS -b, --block
Display as block format (vs cube) [default].
-c, --cube-slice
Display as cube slices (vs block).
-e NUMBER, --88to256=NUMBER
Convert (expand) 88 color value NUMBER to an 256 color value.
-h, --help
Display sort help.
-n, --numbers
Include color escape numbers on chart.
-l, --rgb
Long format. RGB values as text.
-p, --padding
Add extra padding (helps discern colors).
-r NUMBER, --256to88=NUMBER
Convert (reduce) 256 color value NUMBER to an 88 color value.
-v, --vertical
Display with vertical orientation [default].
--version
Show program's version number and exit
-x, --hex
Include hex color numbers on chart.
-z, --horizontal
Display with horizontal orientation.
ENVIRONMENT
None.
FILES
None.
SEE ALSO colortest-8(1)colortest-16(1)colortest-16b(1)colortest-16b(1)AUTHORS
Program was written by Thomas John Eikenberry <jae@zhar.net>
This manual page was written by Jari Aalto <jari.aalto@cante.net>. Released under license GNU GPL version 3 or (at your option) any later
version. For more information about license, visit <http://www.gnu.org/copyleft/gpl.html>.
colortest-python 2012-06-18 colortest-python(1)