The col#2 differs from the requirement?
(Also the b[] stores the $1 string twice, once as the index and another time as part of its value.)
The col#2 seems redundant anyway, so it is omitted in the following solution:
Because of the explicit if, adding the col#2 is simple - left as an exercise.
Last edited by MadeInGermany; 07-26-2017 at 04:38 PM..
Hi All,
I am trying to work on below text
a b c 1
a b c 2
a b c 3
x y z 6
x y z 44
a b c 89
Need to delete the occurances and get in single line like below:
a b c 1 2 3 89
x y z 6 44 89
Please help me i am new into unix scripting .....
---------- Post updated at 03:00... (8 Replies)
Hi Guyz
The 1st column of the input file has repeated keys like x,y and z.
The ist task is if the 1st column has unique key (say x) and then need to consider 4th column, if it is + symbol then subtract 2nd column value with 3rd column value (we will get 2(10-8)) or if it is - symbol subtract 3rd... (3 Replies)
I have the following script in a shell
# The start of a filename
file=$(ls -tr $EMT*.dat | tail -1) # Select the latest file echo $file
file_seq=$( < /u02/sct/banner/bandev2/xxxxxx/misc/EFTSQL.dat)
echo $file_seq
file2 = '$file_seq + 1'
echo $file2
It is reading a file EFTSQL.dat... (3 Replies)
Hi
I am new to the forum and would like to ask:
i have a file in form with thousands of column
id.1 A01 A01 A68 A68
id.2 A5 A5 A3 A3
1001 0 0 0.136 0.136
1002 0 0 0.262 0.183
1003 0 0 0.662 0.662
1004 0 0 ... (9 Replies)
Hi below is the input file, i need to find repeated words and sum up the values of it which is second field from the repeated work.Im trying but getting no where close to it.Kindly give me a hint on how to go about it
Input
fruits,apple,20,fruits,mango,20,veg,carrot,12,veg,raddish,30... (11 Replies)
Hi all,
I have blocks of records like the following, each block ends in = in a new line, I want tabularize the entire output. The pattern is the same in every block although not all types are there in every block.
For example gine3 is absent in the second block but present first and third.
... (7 Replies)
I am using the following script to search for and print minimum values for each individual Fields (3-14) for each unique id (Field 1). But when the field contains a "-99.99" ( I am ignoring "-99.99") and when the minimum value is the first line of a new id (Field 1), the output does not print Field... (13 Replies)
Discussion started by: ncwxpanther
13 Replies
LEARN ABOUT OSX
glgenframebuffers
GLGENFRAMEBUFFERS(3G) OpenGL 3.3 GLGENFRAMEBUFFERS(3G)NAME
glGenFramebuffers - generate framebuffer object names
C SPECIFICATION
void glGenFramebuffers(GLsizei n, GLuint *ids);
PARAMETERS
n
Specifies the number of framebuffer object names to generate.
ids
Specifies an array in which the generated framebuffer object names are stored.
DESCRIPTION
glGenFramebuffers returns n framebuffer object names in ids. There is no guarantee that the names form a contiguous set of integers;
however, it is guaranteed that none of the returned names was in use immediately before the call to glGenFramebuffers.
Framebuffer object names returned by a call to glGenFramebuffers are not returned by subsequent calls, unless they are first deleted with
glDeleteFramebuffers().
The names returned in ids are marked as used, for the purposes of glGenFramebuffers only, but they acquire state and type only when they
are first bound.
ERRORS
GL_INVALID_VALUE is generated if n is negative.
SEE ALSO
glBindFramebuffer(), glDeleteFramebuffers()
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 GLGENFRAMEBUFFERS(3G)