06-20-2008
still not getting it. Do I need to assign indices differently, maybe???
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
As per title and much apprecieated! (2 Replies)
Discussion started by: biglau
2 Replies
2. Shell Programming and Scripting
Hi,
i want awk to read a file and place it's content into two arrays. When trying to read these arrays with a "for a in ${source_path} "-Loop it gives the right result. But when trying to access directly (/bin/echo ${source_path}) it doesn't work.
I read "all "the awk threads in this forum and... (6 Replies)
Discussion started by: bateman23
6 Replies
3. Shell Programming and Scripting
I am trying to use a script to replace the header of each file, whose filename are stored within the array $test, using the sed command within a Perl script as follows:
$count = 0;
while ( $count < $#test )
{
`sed -e 's/BIOGRF 321/BIOGRF 332/g' ${test} > 0`;
`cat 0 >... (2 Replies)
Discussion started by: userix
2 Replies
4. Shell Programming and Scripting
Hi,
My doubt is how to access array elements..
Situation is as below:
#!/bin/ksh
set -x
typeset -i x=0
typeset -i y=0
typeset -i BID=0
typeset -i count=0
while ] ; do
x=`expr $x + 1`;
hwmgr show scsi > scsi.tmp
while read line; do
set... (1 Reply)
Discussion started by: mansa
1 Replies
5. Shell Programming and Scripting
Hi,
can I use array elements ( all ) in conditional statements?
the problem is ,the total number of elements is not known.
e.g
A is an array with elements - 1,2,3
now if i want to test if the 1 st field of input record is either 1,2 or 3, i can do something like this
if ( $1 ~... (1 Reply)
Discussion started by: shellwell
1 Replies
6. Shell Programming and Scripting
i have an array call ignore. it is set up
ignore=34th56
ignore=re45ty
ignore=rt45yu
.
.
ignore=rthg34
n is a variable. I have another variable that i read from a different file. It is $2 and it is working the way i expect. array ignore read and print correct values.
in the below if... (2 Replies)
Discussion started by: usustarr
2 Replies
7. Shell Programming and Scripting
i just want to dump my array and see if it contains the values i am expecting. It should print as follows,
ignore=345fht
ignore=rthfg56
.
.
.
ignore=49568g
Here is the code. Is this even possible to do? please help
termReport.pl < $4 | dos2ux | head -2000 | awk '
BEGIN... (0 Replies)
Discussion started by: usustarr
0 Replies
8. Shell Programming and Scripting
Hello,
I have two files in the following format;
file1:
A B C D
E F G H
I J K L
file2:
1 2 3 4
5 6 7 8
9 10 11 12
I have read them both in to multi-dimensional arrays. I need a file that has column 2 of the first file printed out for each column 3 of the second file ie...
... (3 Replies)
Discussion started by: cold_Que
3 Replies
9. Shell Programming and Scripting
Hi all,
I can’t resolve an array element access issue on (Linux/pdksh) .. So I’m positing for advice.By the way - a friend demonstrated to me - same script works as expected under Solaris.
I have been working on a documentation project where many *.jpg screen shots are used in the... (4 Replies)
Discussion started by: njdpo
4 Replies
10. Shell Programming and Scripting
Hi all,
I'm dealing with a bash script to merge the elements of a set of files and counting how many times each element is present. The last field is the file name.
Sample files:
head -5 *.tab==> 3J373_P15Ac1y2_01_LS.tab <==
chr1 1956362 1956362 G A hom ... (7 Replies)
Discussion started by: lsantome
7 Replies
LEARN ABOUT MOJAVE
glgetuniformindices
GLGETUNIFORMINDICES(3G) OpenGL 3.3 GLGETUNIFORMINDICES(3G)
NAME
glGetUniformIndices - retrieve the index of a named uniform block
C SPECIFICATION
GLuint glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar **uniformNames, GLuint *uniformIndices);
PARAMETERS
program
Specifies the name of a program containing uniforms whose indices to query.
uniformCount
Specifies the number of uniforms whose indices to query.
uniformNames
Specifies the address of an array of pointers to buffers containing the names of the queried uniforms.
uniformIndices
Specifies the address of an array that will receive the indices of the uniforms.
DESCRIPTION
glGetUniformIndices retrieves the indices of a number of uniforms within program.
program must be the name of a program object for which the command glLinkProgram() must have been called in the past, although it is not
required that glLinkProgram() must have succeeded. The link could have failed because the number of active uniforms exceeded the limit.
uniformCount indicates both the number of elements in the array of names uniformNames and the number of indices that may be written to
uniformIndices.
uniformNames contains a list of uniformCount name strings identifying the uniform names to be queried for indices. For each name string in
uniformNames, the index assigned to the active uniform of that name will be written to the corresponding element of uniformIndices. If a
string in uniformNames is not the name of an active uniform, the special value GL_INVALID_INDEX will be written to the corresponding
element of uniformIndices.
If an error occurs, nothing is written to uniformIndices.
ERRORS
GL_INVALID_OPERATION is generated if program is not the name of a program object for which glLinkProgram() has been called in the past.
NOTES
glGetUniformIndices is available only if the GL version is 3.1 or greater.
SEE ALSO
glGetActiveUniform(), glGetActiveUniformName(), glLinkProgram()
COPYRIGHT
Copyright (C) 2010 Khronos Group. 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 GLGETUNIFORMINDICES(3G)