OK, the title is a little vague, but basically i was gonig through some files and ran into some strange syntax... heres what it looks like:
... 1&>~/<file extension>
where ... is a chain of commands (the 1&>~ is part of the arguments) and the file extension is just a pointer to a file... (1 Reply)
can anyone explain the code for me... i am new to shell programming
while getopts ":S:D:U:" OPTION "$@"
do
case $OPTION in
S) SRVR=$OPTARG;;
D) DB="$OPTARG"; USEDB="use $OPTARG";;
U) UID=$OPTARG;;
:) MISSINGOPTARG="$MISSINGOPTARG -$OPTARG";;
?) if
then
... (2 Replies)
IN the book below example showed
find /home/tolstoy -type d -print | Find all directories
sed 's;/home/tolstoy/;/home/lt/;' | Change name, note use of semicolon delimiter
while read newdir Read new directory name
do
mkdir $newdir ... (7 Replies)
I know that I want to entirely replace line 3 in my file filename.txt. I have tried all sorts of variations of
sed 3,3,c\replacement stuff\ filename.txt with no success.
about the only thing that causes any reaction is
sed 3,3c\\ filename.txt
but it just prints out the whole file.
... (13 Replies)
hi!
pls help me :)
cd folder
for f in *; do
...
done
this circle takes all files from folder1
i need only .pdf files
but it may be like a.pdf or a.PDF
what syntax must i use?
smth like it:
cd folder
for f in *.(pdf|PDF); do (2 Replies)
Hi all,
I'm trying to decrypt a GnuPG file but not having much luck. I'm new to using it and have tried 4 different ways to do it but nothing works. Here are examples of the attempts I have made:
gpg -o ./file_name.tar.Z --passphrase-fd 0 ./file_name.tar.Z.gpg 0<./password.txt
cat... (5 Replies)
Query with perl syntax
Aim: is to change a perl script to use a new file
I was required to replace
- entries \"$entries\"
with
-lib <full_path_to_filename>
So in the code detector.pm
sub rundetector
{
my $class = shift;
mkdir($resultDirectory);
my... (3 Replies)
Discussion started by: sa@@
3 Replies
LEARN ABOUT SUSE
glcolortableparameter
GLCOLORTABLEPARAMETER(3G)GLCOLORTABLEPARAMETER(3G)NAME
glColorTableParameteriv, glColorTableParameterfv - set color lookup table parameters
C SPECIFICATION
void glColorTableParameteriv( GLenum target,
GLenum pname,
const GLint *params )
void glColorTableParameterfv( GLenum target,
GLenum pname,
const GLfloat *params )
PARAMETERS
target The target color table. Must be GL_COLOR_TABLE, GL_POST_CONVOLUTION_COLOR_TABLE, or GL_POST_COLOR_MATRIX_COLOR_TABLE.
pname The symbolic name of a texture color lookup table parameter. Must be one of GL_COLOR_TABLE_SCALE or GL_COLOR_TABLE_BIAS.
params A pointer to an array where the values of the parameters are stored.
DESCRIPTION
glColorTableParameter is used to specify the scale factors and bias terms applied to color components when they are loaded into a color ta-
ble. target indicates which color table the scale and bias terms apply to; it must be set to GL_COLOR_TABLE,
GL_POST_CONVOLUTION_COLOR_TABLE, or GL_POST_COLOR_MATRIX_COLOR_TABLE.
pname must be GL_COLOR_TABLE_SCALE to set the scale factors. In this case, params points to an array of four values, which are the scale
factors for red, green, blue, and alpha, in that order.
pname must be GL_COLOR_TABLE_BIAS to set the bias terms. In this case, params points to an array of four values, which are the bias terms
for red, green, blue, and alpha, in that order.
The color tables themselves are specified by calling glColorTable.
NOTES
glColorTableParameter is available only if GL_ARB_imaging is returned from calling glGetString with an argument of GL_EXTENSIONS.
ERRORS
GL_INVALID_ENUM is generated if target or pname is not an acceptable value.
GL_INVALID_OPERATION is generated if glColorTableParameter is executed between the execution of glBegin and the corresponding execution of
glEnd.
ASSOCIATED GETS
glGetColorTableParameter
SEE ALSO glColorTable(3G), glPixelTransfer(3G)GLCOLORTABLEPARAMETER(3G)