Example given by the OP, get all those lines which start with S or s ^[Ss] and very next word should start with be R or r [Rr], [^ ]* means look until you find space that means next word.
[^ ]* Means non emty space fallowed by any character na?
Hi,
I am trying to search through a file for a particular word, then once found, I want the search to carry on for another 30 lines and append all this to a new file. For example, I search for the word "test" in hello.txt:
<--some code-->
<--some code-->
<--some code-->
test
<--some more... (7 Replies)
Hi all,
I'm looking for some help. I have a file (very long) that is organized like below:
>Cluster 0
0 283nt, >01_FRYJ6ZM12HMXZS... at +/99%
1 279nt, >01_FRYJ6ZM12HN12A... at +/99%
2 281nt, >01_FRYJ6ZM12HM4TS... at +/99%
3 283nt, >01_FRYJ6ZM12HM946... at +/99%
4 279nt,... (4 Replies)
Hi all,
I would like to print words in a file seperated by whitespaces containing a specific pattern like "="
e.g. I have a file1 containing strings like
%cat file1
The= some= in
wish= born
<eof> .I want to display only those words containing = i.e The= , some=,wish=
... (5 Replies)
Hi All,
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read value
# check if the user has... (1 Reply)
Hi Guys,
I am writing a shell script to extract only the error message from a log file.
I am having difficulty in searching the highlighted text in the below code.
<runtimeinfo datetime="Sun Apr 04 20:02:52 EDT 2008" docid="" source="RAWDATA" event="ERROR"... (2 Replies)
Hi,
I would like to search the pattern based on the date like "2010/08/15". I tried using / in the file giving /<<pattern>>. when i tried this it turns to /2010/+8, but not going to the pattern what ever i want.
This is how the data in the file.
INFO | jvm 1 | 2010/05/26 13:30:33... (5 Replies)
The problem is similar to my yesterday post
I Would like an awk script that does the following:
I have a file (f1) that contains 1
2
3
4
5and another one (f2) that contains 8|a
9|b
0|c
1|d
2|e
3|f
4|g
5|h
6|i
7|jAnd I'd like to get this:
1|d
2|e
3|f
4|g (5 Replies)
Hi,
I have more than 30,000 records in a flat file. I want to remove footer from the file by searching a string pattern for the footer.
Example.... let the flat file test.dat contains below records.
record1
record2
record3
..
..
..
record31000
Total records 31000
I want to remove the... (6 Replies)
Hi,
I have got some 10 filenames stored in a file or displayed in the console as a result of some query i made.. Now I need to open each of these files and search for a pattern in these 10 files.. Can someone help me with this?
Thanks,
Jean (9 Replies)
Discussion started by: jeanjkj
9 Replies
LEARN ABOUT REDHAT
gllinestipple
GLLINESTIPPLE(3G)GLLINESTIPPLE(3G)NAME
glLineStipple - specify the line stipple pattern
C SPECIFICATION
void glLineStipple( GLint factor,
GLushort pattern )
PARAMETERS
factor Specifies a multiplier for each bit in the line stipple pattern. If factor is 3, for example, each bit in the pattern is used
three times before the next bit in the pattern is used. factor is clamped to the range [1, 256] and defaults to 1.
pattern Specifies a 16-bit integer whose bit pattern determines which fragments of a line will be drawn when the line is rasterized. Bit
zero is used first; the default pattern is all 1's.
DESCRIPTION
Line stippling masks out certain fragments produced by rasterization; those fragments will not be drawn. The masking is achieved by using
three parameters: the 16-bit line stipple pattern pattern, the repeat count factor, and an integer stipple counter s.
Counter s is reset to 0 whenever glBegin is called, and before each line segment of a glBegin(GL_LINES)/glEnd sequence is generated. It is
incremented after each fragment of a unit width aliased line segment is generated, or after each i fragments of an i width line segment are
generated. The i fragments associated with count s are masked out if
pattern bit (s/factor)mod16
is 0, otherwise these fragments are sent to the frame buffer. Bit zero of pattern is the least significant bit.
Antialiased lines are treated as a sequence of 1xwidth rectangles for purposes of stippling. Whether rectagle s is rasterized or not
depends on the fragment rule described for aliased lines, counting rectangles rather than groups of fragments.
To enable and disable line stippling, call glEnable and glDisable with argument GL_LINE_STIPPLE. When enabled, the line stipple pattern is
applied as described above. When disabled, it is as if the pattern were all 1's. Initially, line stippling is disabled.
ERRORS
GL_INVALID_OPERATION is generated if glLineStipple is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_LINE_STIPPLE_PATTERN
glGet with argument GL_LINE_STIPPLE_REPEAT
glIsEnabled with argument GL_LINE_STIPPLE
SEE ALSO glLineWidth(3G), glPolygonStipple(3G)GLLINESTIPPLE(3G)