Hi I'm in the need of a script that basically takes two files and generates a 3rd. It reads from fileA and fileB and copies lines from fileA if they start by a word of fileB.
for example
fileA
The dog is beautful
Where is your cat
Why are you sad?
Help me!
fileB
The
Where
tree
dog... (4 Replies)
Hi Gurus,
I'm need of a script in which we are finding an independent word ‘boy' in a log file. We are using grep in order to do the same. Now in this log file there are some sentences where we see ‘This is a boy' and we do not want to count word ‘boy' from this sentence.
So in other word we want... (2 Replies)
Please help me in ignoring first word in a line example
Input log
123^Babd^Basdf789^B098^Bouiou
Desired output
abd,asdf789,098,ouiou
123 should be ignored
is this possible using sed regular expressions
Use code tags - you got a PM with a guide. (2 Replies)
Hello everybody,
How can I start to print an output when a word hits the pattern space.
for example:
file.txt :
first line
second line
third line
fourth line
...
cat file.txt > function "second"
should print
second line
third line
fourth line
...
thanks for the replies now... (3 Replies)
Hi
I am new to Awk programming , i would appreciate if anyone help me with the below scenario
i have text file arranged in rows and columns like below
11004 04493384 26798 CASSI0000I Server manager initialization started
111004 04493486 26798 CASSI4005I Retrieving ES... (7 Replies)
I want to find a regex command that I can run on the command line that will find a whole word followed by another whole word (that I specify in the command).
What I am looking to do is also include a file extension (like .txt) in the command such that it only runs the regex on files with that... (6 Replies)
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Hi
Input:
MYTEXT.aa.bb
cc.MYTEXT.aa.bb
ee.dd.cc.MYTEXT.aa.bb
cc.NOTEXT.a.b
Output:
<empty>
cc
cc
<empty>
I would like to use a regex to extract the last word before MYTEXT without the dot (2 Replies)
Hello, All
I learned from book about word anchor "\<" and "\>"; however when I tested them, they seem to work only in grep.
Can anyone suggest word anchor that can be used in grep, awk, perl ...? (3 Replies)
I am interested in finding a regex to find a word in second position on a line. The word in question is या
I tried the following PERL EXPRESSION but it did not work:
] या
or
^\W या
But both gave Null results
I am giving below a Sample file:
देना या सौंपना=delegate
तह जमना या... (8 Replies)
Discussion started by: gimley
8 Replies
LEARN ABOUT REDHAT
glgeterror
GLGETERROR(3G)GLGETERROR(3G)NAME
glGetError - return error information
C SPECIFICATION
GLenum glGetError( void )
DESCRIPTION
glGetError returns the value of the error flag. Each detectable error is assigned a numeric code and symbolic name. When an error occurs,
the error flag is set to the appropriate error code value. No other errors are recorded until glGetError is called, the error code is
returned, and the flag is reset to GL_NO_ERROR. If a call to glGetError returns GL_NO_ERROR, there has been no detectable error since the
last call to glGetError, or since the GL was initialized.
To allow for distributed implementations, there may be several error flags. If any single error flag has recorded an error, the value of
that flag is returned and that flag is reset to GL_NO_ERROR when glGetError is called. If more than one flag has recorded an error,
glGetError returns and clears an arbitrary error flag value. Thus, glGetError should always be called in a loop, until it returns
GL_NO_ERROR, if all error flags are to be reset.
Initially, all error flags are set to GL_NO_ERROR.
The following errors are currently defined:
GL_NO_ERROR No error has been recorded. The value of this symbolic constant is guaranteed to be 0.
GL_INVALID_ENUM An unacceptable value is specified for an enumerated argument. The offending command is ignored, and has no
other side effect than to set the error flag.
GL_INVALID_VALUE A numeric argument is out of range. The offending command is ignored, and has no other side effect than to
set the error flag.
GL_INVALID_OPERATION The specified operation is not allowed in the current state. The offending command is ignored, and has no
other side effect than to set the error flag.
GL_STACK_OVERFLOW This command would cause a stack overflow. The offending command is ignored, and has no other side effect
than to set the error flag.
GL_STACK_UNDERFLOW This command would cause a stack underflow. The offending command is ignored, and has no other side effect
than to set the error flag.
GL_OUT_OF_MEMORY There is not enough memory left to execute the command. The state of the GL is undefined, except for the
state of the error flags, after this error is recorded.
GL_TABLE_TOO_LARGE The specified table exceeds the implementation's maximum supported table size. The offending command is
ignored, and has no other side effect than to set the error flag.
When an error flag is set, results of a GL operation are undefined only if GL_OUT_OF_MEMORY has occurred. In all other cases, the command
generating the error is ignored and has no effect on the GL state or frame buffer contents. If the generating command returns a value, it
returns 0. If glGetError itself generates an error, it returns 0.
NOTES
GL_TABLE_TOO_LARGE was introduced in GL version 1.2.
ERRORS
GL_INVALID_OPERATION is generated if glGetError is executed between the execution of glBegin and the corresponding execution of glEnd. In
this case glGetError returns 0.
GLGETERROR(3G)