Hi,
I want to write a shell script which increments a particular column in a row from a text file and then adds another row below the current row with the incremented value .
For Eg .
if the input file has a row :
abc xyz lmn 89 lm nk o p
I would like the script to create something like... (9 Replies)
Hi All,
I would like to have a script which is able to perform the below.
Print the whole row if column1 which is "0001" for the below example is the first occurrence. Subsequent "0001" occurrence will not be printed out and so on.
Can any expert help ?
Input:
0001 k= 40
0001 k= 2... (7 Replies)
I want to check if every <Part> element has corresponding <Description> in this sample XML.
....<Lot Of XML>
<Inv lineNumber="2">
<Item>
... (4 Replies)
Hi Friends,
I have a single column data like below.
1
2
3
4
5
I need the output like below.
0
1
2
3
4
where each row (including first row) subtracting from first row and the result should print below like the way shown in output file.
Thanks
Sid (11 Replies)
Hi.
How can we print those rows of file2 which are mentioned in file1. first character of file1 is a row number.. for eg
file1
1:abc
3:ghi
6:pqr
file2
a abc
b def
c ghi
d jkl
e mno
f pqr
... (6 Replies)
I have a table with this structure:
cola colb colc
1 19 lemon
20 31 lemon
32 100 lemon
159 205 cherries
210 500 cherries
and need to parse it into this format:
cola colb colc
1 100 lemon
159 500 cherries
So I need the first row of cola and the last row of colb if colc has the... (3 Replies)
Hello,
I have this table:
chr1_16857_17742 - chr1 17369 17436 "ENST00000619216.1"; "MIR6859-1"; - 67
chr1_16857_17742 - chr1 14404 29570 "ENST00000488147.1"; "WASH7P"; - 885
chr1_16857_18061 - chr1 ... (5 Replies)
Discussion started by: coppuca
5 Replies
LEARN ABOUT MOJAVE
glattachshader
GLATTACHSHADER(3G) OpenGL 3.3 GLATTACHSHADER(3G)NAME
glAttachShader - Attaches a shader object to a program object
C SPECIFICATION
void glAttachShader(GLuint program, GLuint shader);
PARAMETERS
program
Specifies the program object to which a shader object will be attached.
shader
Specifies the shader object that is to be attached.
DESCRIPTION
In order to create a complete shader program, there must be a way to specify the list of things that will be linked together. Program
objects provide this mechanism. Shaders that are to be linked together in a program object must first be attached to that program object.
glAttachShader attaches the shader object specified by shader to the program object specified by program. This indicates that shader will
be included in link operations that will be performed on program.
All operations that can be performed on a shader object are valid whether or not the shader object is attached to a program object. It is
permissible to attach a shader object to a program object before source code has been loaded into the shader object or before the shader
object has been compiled. It is permissible to attach multiple shader objects of the same type because each may contain a portion of the
complete shader. It is also permissible to attach a shader object to more than one program object. If a shader object is deleted while it
is attached to a program object, it will be flagged for deletion, and deletion will not occur until glDetachShader() is called to detach it
from all program objects to which it is attached.
ERRORS
GL_INVALID_VALUE is generated if either program or shader is not a value generated by OpenGL.
GL_INVALID_OPERATION is generated if program is not a program object.
GL_INVALID_OPERATION is generated if shader is not a shader object.
GL_INVALID_OPERATION is generated if shader is already attached to program.
ASSOCIATED GETS
glGetAttachedShaders() with the handle of a valid program object
glGetShaderInfoLog()
glGetShaderSource()
glIsProgram()
glIsShader()
SEE ALSO
glCompileShader(), glCreateShader(), glDeleteShader(), glDetachShader(), glLinkProgram(), glShaderSource()
COPYRIGHT
Copyright (C) 2003-2005 3Dlabs Inc. Ltd. This material may be distributed subject to the terms and conditions set forth in the Open
Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
OpenGL 3.3 03/08/2011 GLATTACHSHADER(3G)