On OS 10.4.11
I have filenames like:
670711 SA T2 v1-1_DS_EF.doc
CT_670520 AM T1 v1-2_DS_EF.doc
CT_670716 - 2 SA T4 v1-2_DS_EF.doc
CT_670713 SA T3 v1-1_DS_EF.doc
670421 PA DYP1 v1-1_DS_EF.doc
CT_670425 PA DYP2 v1-1_DS_EF.doc
CT_670107 RA T3 v1-2_DS_EF.doc
CT_670521 AM T2 v1-2_DS_EF.doc... (3 Replies)
Hi,
I have looked all over for this. I am attempting to get a the substring of a string using sed since it seemed the best solution for this.
For example my string is: "zzz foo to you and bar123 or foo"
I would like to extract the text between "and" and "or" (it could be anything, but... (2 Replies)
I am trying to get a substring from a string stored in a variable. I tried sed with a bit help from this forum, but not successful. Here is my problem.
My string is: "REPLYFILE=myfile.txt"
And I need: myfile.txt (everything after the = symbol).
My string is: "myfile.txt.gz.20091120.enc... (5 Replies)
Hi Gurus,I have a seemingly simple problem but struggling with it.It is as follows :
I/p string -
ABCDEFGHIJ20100909.txt
desired o/p -
AB,DEF,20100909,ABCDEFGHIJ20100909.txt
How to achieve it ?Thanks in advance.
Please use code tags, thank you (20 Replies)
HI All,
I have a file which looks like below
./Prod_id/rel/prod/lib.a
./Some_text/rel/fld/lib.a
./Some_text/deb/detail/lib.a
./Some_text/deb/err/lib.a
./Some_text/rel/prod/lib.a
./Some_text/rel/fld/lib.a
./Some_text/deb/detail/lib.a
./Some_text/deb/err/lib.a
I want... (5 Replies)
Hi All,
I have this text file
IR7013903069171012INT10171211864
Axxxxxxxxxx12345dddddddddddd
Byyyyyyyyy99999999ddddddddd
IR7013903069171012TOS10171211865
Cffffffffff5745747ehdefffffffffgggggggg
Dyyyyyyyyy99999999ddddddddd
I need to
1) find lines where the substring IR70139 is... (5 Replies)
Greetings.
I'm looking to isolate the first occurrence of an arbitrary substring which may be present at any particular line in a given file. The enclosing end markers for the target in our thought problem are string" and ". The complete string and surrounding text could look something like... (3 Replies)
I'm attempting to replace a substring that contains a hyphen and not having much success, can anyone point out where i'm going wrong or suggest an alternative.
# echo /var/lib/libvirt/images/vm888b-clone.qcow | sed -e 's|vm888-clone|qaz|g'
/var/lib/libvirt/images/vm888b-clone.qcow (1 Reply)
i have this data where i am looking for a two digit number 01,03,05 or 07.
if not found i should detect that .
this sed command gives me the matching rows . I want the opposite , i want the rows if the match is NOT found .
also the sed command is only looking for 01, can i add 03, 05, 07 to... (7 Replies)
Discussion started by: boncuk
7 Replies
LEARN ABOUT CENTOS
glshademodel
GLSHADEMODEL(3G) OpenGL Manual GLSHADEMODEL(3G)NAME
glShadeModel - select flat or smooth shading
C SPECIFICATION
void glShadeModel(GLenum mode);
PARAMETERS
mode
Specifies a symbolic value representing a shading technique. Accepted values are GL_FLAT and GL_SMOOTH. The initial value is GL_SMOOTH.
DESCRIPTION
GL primitives can have either flat or smooth shading. Smooth shading, the default, causes the computed colors of vertices to be
interpolated as the primitive is rasterized, typically assigning different colors to each resulting pixel fragment. Flat shading selects
the computed color of just one vertex and assigns it to all the pixel fragments generated by rasterizing a single primitive. In either
case, the computed color of a vertex is the result of lighting if lighting is enabled, or it is the current color at the time the vertex
was specified if lighting is disabled.
Flat and smooth shading are indistinguishable for points. Starting when glBegin() is issued and counting vertices and primitives from 1,
the GL gives each flat-shaded line segment i the computed color of vertex i + 1, its second vertex. Counting similarly from 1, the GL gives
each flat-shaded polygon the computed color of the vertex listed in the following table. This is the last vertex to specify the polygon in
all cases except single polygons, where the first vertex specifies the flat-shaded color.
+--------------------------------------------------+-----------------------------------+
| | |
| Primitive Type of Polygon | Vertex |
| i | |
| | |
+--------------------------------------------------+-----------------------------------+
|Single polygon | 1 |
| ( | |
| | |
| | |
| i | |
| == | |
| 1 | |
| | |
| ) | |
+--------------------------------------------------+-----------------------------------+
|Triangle strip | i |
| | + |
| | 2 |
+--------------------------------------------------+-----------------------------------+
|Triangle fan | i |
| | + |
| | 2 |
+--------------------------------------------------+-----------------------------------+
|Independent triangle | 3 |
| | |
| | i |
+--------------------------------------------------+-----------------------------------+
|Quad strip | 2 |
| | |
| | i |
| | + |
| | 2 |
+--------------------------------------------------+-----------------------------------+
|Independent quad | 4 |
| | |
| | i |
+--------------------------------------------------+-----------------------------------+
Flat and smooth shading are specified by glShadeModel with mode set to GL_FLAT and GL_SMOOTH, respectively.
ERRORS
GL_INVALID_ENUM is generated if mode is any value other than GL_FLAT or GL_SMOOTH.
GL_INVALID_OPERATION is generated if glShadeModel is executed between the execution of glBegin() and the corresponding execution of
glEnd().
ASSOCIATED GETS
glGet() with argument GL_SHADE_MODEL
SEE ALSO
glBegin(), glColor(), glLight(), glLightModel()
COPYRIGHT
Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see
http://oss.sgi.com/projects/FreeB/.
AUTHORS
opengl.org
opengl.org 06/10/2014 GLSHADEMODEL(3G)