Hello,
Im trying to extract a portion of a big file.
Using unique pattern /occurrence ,
(ex. loginname1,logoff and loginname2,logoff ),
I like to print the lines that contain the patterns and the lines between them.
Also, create a file for every login occurrence.
Thanks for everyone's... (1 Reply)
Hi, everyone,
Now I have a ".csv" file and I want to extract a string-like date value from the file, say, it is in the 2nd row of the file and it is in the fixed context like:
"
This is the file title, //Row 1
The lastest update happened on: 10-Mar-2006 //Row2
....//other irrelavent rows
"... (6 Replies)
Dear Members,
I have a huge file generated by the command 'whois' for hundred of IPs. Each section in the file starts with
I want to extract those lines which start with any of these words: Input:
OrgName: University of C
OrgID: U1
Address: OIT
Address: NH
City: ... (5 Replies)
Hi All,
I have a file of the following format.
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user... (5 Replies)
Hi All,
I have a requirement where I have to search the file with some text say "Exception". This exception word can be repeated for more then 10 times.
Suppose the "Exception" word is repeated at line numbers say x=10, 50, 60, 120. Now I want to extract all the lines starting from x-5 to... (3 Replies)
Hello everybody,
Here is my problem : I cannot find a way to extract data from a particular file and more precisely I cannot extract the result of my awk script to an external file because I am currently working on HP-UX.
I would like a simple script (without awk) which asks for a date like... (4 Replies)
Hi,
I have three files as below:
AA.DAT20110505063903.Z
AA.DAT20110405062903.Z
AA.DAT20110305061903.Z
All the above files are appended with Date and timestamp in compressed format.
I need to extract AA.DAT20110505063903.Z(which is the latest file) from one server and uncompress it... (2 Replies)
Hii ,I am new to Unix ,i have a flat file which is (fixed length) sitting in unix,Which is holding the data for a table.I want to extract one column(length7-10) on the basis of another column(length13-15) and want only one single row
Example:
Below is the sample of flat file.
1111 AAAA 100 ... (4 Replies)
Hi Freinds,
I have a file1.txt in the following format
File1.txt
I want to get 2 files from the above file filextra.txt should have the lines which are ending with "<" and remaining lines in the filecompare.txt file.
Please help. (3 Replies)
FILE_ID extraction from file name and save it in CSV file after looping through each folders
My files are located in UNIX Server, i want to extract file_id and file_name from each file .and save it in a CSV file. How do I do that?
I have folders in unix environment, directory structure is... (15 Replies)
Discussion started by: princetd001
15 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)