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
hufo_smoke
OGLC Screensaver(1) General Commands Manual OGLC Screensaver(1)NAME
hufo_smoke - particle smoke effect.
SYNOPSIS
hufo_smoke [--root/-r] [--maxfps/-x number] [--vsync/-y number] [--dpms/-M number] [--foreground/-f number] [--background/-b number]
DESCRIPTION
From Jeremie Allard (http://hufo.planet-d.net/codefr_us.php): "This little smoke effect is coded with a little particle system done for
'The OpenGL Challenge'."
Ported to Linux by Tugrul Galatali.
OPTIONS --root Draw on the root window.
--maxfps number
Set maximum frame rate.
--vsync number
Limit redraws to specified number of vertical refreshes. 0 - 100. Default: 1
--dpms number
Stop rendering new frames if the display is not on. 0 - 1. Default: 1
--foreground number
Set primary (dense smoke) color using hex color codes. Default: ffffff
--background number
Set secondary (light smoke) color using hex color codes. Default: ffffff
ENVIRONMENT
DISPLAY to get the default host and display number.
SEE ALSO X(1),
COPYRIGHT
Copyright (C) 2000 by Jeremie Allard and Tugrul Galatali.
hufo_smoke is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as pub-
lished by the Free Software Foundation.
hufo_smoke is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL-
ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
AUTHOR
Jeremie Allard (Hufo / N.A.A.) <hufo@planet-d.net> and Tugrul Galatali <tugrul@galatali.com>
X Version 11 OGLC Screensaver(1)