Hi Everyone.
I want to get all the lines above the word error. Note some records dont have error.
ex
Input Rec # 2384 Client: BGA Rx No: 0735845
Error: (W)Submit Date before Fill Date(SUBMIT-DATE)
I want to have the line which starts with... (16 Replies)
i have this line
my,name,is,john
stored in a file d.sh and i wish to print the line as string..but im getting word by word...have tried this.........
for in $(cat $d.sh);
do
echo $i
done
but this is giving me
my
name
is
john (6 Replies)
Hey all,
Could any one help me ...
I want to search the word and want the line above it.
eg. mytxt.log
My name is Jeevan.
240 is my address.
My name is Jhon.
390 is my address.
--------
i want to search "240" and want output as
My name is Jeevan.
240 is my address.
... (7 Replies)
I am using the while-loop to read a file.
The file has lines with null-terminated strings (words, actually.)
What I have by that reading - just a first word up to '\0'!
I need to have whole string up to 'new line' - (LF, 10#10, 16#A)
What I am doing wrong?
#make file 'grb' with... (6 Replies)
Hi people;
i want to read the last word of the 14th line of my file1.txt. Here is the EXACT 14th line of the file.
250 SectorPortnum=3,AuxPortInUngo=2,PortDeviceGroup=1,PortDeviceSet=1,PorDevice=1 20 >>> Set.
i have to get the word Set. how can i call it and also how... (3 Replies)
Hi, I need a script to read last word of the line and out put in some temp file.
i
it can contain any word like:
My name is Harry.
or
My zip code is 24490
or it can be
My secret code is 024H
I just need last word of the line (Harry, or 2440 or 024H)
Thanks for the posts below.... (10 Replies)
Folks,
I am working on a file which has entries as follows. I am using while read line to generate desired output as follows.
filename1:
Name : sdt2156157_ID
NOS : 4567
NOS : 2348
Name : sdt2156158_ID
NOS : 4987
NOS : 2332
while read line... (3 Replies)
Hi,
I would like to read a file line by line and then store the whole line word by word in array so that I can do specific manipulation on each word.
$ cat test.txt
hello how are you
i am good
I would like to have an array created dynamically so that first time , the... (4 Replies)
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
I have a file: file.txt, which contains the following data in it.
This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt
My name is not Karl, my name is Karl Joey
What is your name?
Do you know your name and... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
LEARN ABOUT DEBIAN
dtk_create_complex_shape
DTK_CREATE_COMPLEX_SHAPE(3) Draw Toolkit manual DTK_CREATE_COMPLEX_SHAPE(3)NAME
dtk_create_complex_shape - Creates or modify a shape to display custom and evolving content
SYNOPSIS
#include <drawtk.h>
dtk_hshape dtk_create_complex_shape(dtk_hshape shp,
unsigned int nvert, const float *vertpos,
const float *vertcolor, const float *texcoords,
unsigned int nind, const unsigned int *ind,
unsigned int type, dtk_htex tex);
DESCRIPTION
dtk_create_complex_shape() creates a shape displaying a complex, custom and possibly evolving content described by vertex attribute buffers
(vertpos, vertcolor and texcoords) and an array ind containing the indices of vertices whose order describes how to connect the vertices
altogether in order to form primitives (controlled by type). tex can be used to specify a texture to be mapped onto the shape.
vertpos should point to an array of nvert pairs of float values corresponding of the position (x,y) of each vertex. vertcolor should point
to an array of nvert quatuples of float values corresponding of the color (R,G,B,A) of each vertex. texcoords can be either NULL or can
point to an array of nvert pairs of float values corresponding to the texture coordinates (u,v) of the vertex. If texcoords is NULL, no
texture will be used even if tex is not null.
ind should point to an array of nind indices of the vertices in the vertex attribute buffers. This list of indices determines how the ver-
tices form the primitives and depends on type zhich can take one the following value (See OpenGL manual to have detail):
DTK_TRIANGLE_STRIP
The first three vertices defines the first triangle (and their order is significant). Each subsequent vertex defines a new triangle
using that point along with two vertices from the previous triangle.
DTK_TRIANGLE_FAN
A triangle fan is the same as a triangle strip with one exception: the first vertex of the list is always the first vertex of each
triangle.
DTK_TRIANGLES
Separate triangles are specified. Every 3 indices defines in the order a triangle. If nind is not a multiple of 3, the excedent 1 or
2 indices are ignored.
DTK_LINE_STRIP
A series of one or more connected line segments is specified by enclosing a series of two or more endpoints. In this case, the ith
index specifies the end point of the i-1st segment and the start point of the ith segment.
DTK_LINES
Individual line segments, each specified by a pair of vertices. If nind is odd, then the last index is ignored.
shp can be used to modify a previously created shape. If it is non-null, the handle will be used to modify the shape referenced by shp: no
new shape is created and the returned value is ensured to be shp in case of success, NULL otherwise. If shp is NULL, the function will
attempt to create a new shape.
The arrays vertpos, vertcolor, texcoords and ind are not copied into internal structures of the created shape. This allows one to dynami-
cally change any aspect of the shape. However, in return it forces to keep the buffers allocated during the whole life time of the shape.
RETURN VALUE
In case of success the function returns the handle to the newly created or modified shape. If the shp argument is non-null, the handle
returned is the same value. In case of error, NULL is returned.
THREAD SAFETY
The data contained into the buffers are accessed only during the creation and the draw of the shape. So if the data is updated in a differ-
ent thread than the one used for drawing, some locking is needed.
SEE ALSO dtk_create_shape(3)EPFL 2010 DTK_CREATE_COMPLEX_SHAPE(3)