02-19-2010
And the error message is .... ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'd like to grep a pattern of a version number as
*_number.number.number
number should be digit
my grep is
|egrep '^*++\.+'
It works for V_3.2.1 or V _5.3.2 but not with V_43.6.543 !!!!!
How can I specify any repetition of digit in the ?
thanks, (4 Replies)
Discussion started by: annelisa
4 Replies
2. Shell Programming and Scripting
Hi All,
I am using egrep command to search one pattern. Following is the command i am using
egrep -i "ACL*" filename
but its also giving me the records which do not contain ACL.
any help would be appreciated.
Regards,
Sam (3 Replies)
Discussion started by: sam25
3 Replies
3. UNIX Desktop Questions & Answers
Hi
Please can someone help me with a query. Will the following query bring back 'Jolly Brewers'. My understanding is that it will bring back either 'Jolly' or 'Brewers' but not 'Jolly Brewers'....because of the pipe
egrep '(Jolly)|(Brewers)' Public_Houses
Please can someone confirm?
... (6 Replies)
Discussion started by: tmn0004676
6 Replies
4. Shell Programming and Scripting
Hi,
I am writing a bash script which will dynamically generate an egrep command searching for a number of times within a file.
The problem is that I am putting a space in a variable called timestr. When I echo the variable the space comes out normally:
'(2011-10-05 12:|2011-10-05 13)'
... (6 Replies)
Discussion started by: remixed
6 Replies
5. Shell Programming and Scripting
Hi All,
Here is my question.
I have two files, file1.txt and file2.txt. I need the line number (index number) of file2.txt where the words in file1.txt appear. But they have to be in the same order as file1.txt. In example,
file1.txt
Z
K
A
...
T
file2.txt
W
A
Q
R (6 Replies)
Discussion started by: senayasma
6 Replies
6. Shell Programming and Scripting
cat /tmp/inventory.csv|grep AARP|egrep -v "T11|12.4\(7\)"
how do i exclude in addition to above 12.4\(3\)
I have tried adding this in i.e
-v "T11|12.4\(7\)|12.4\(3\)"
but it did not work (3 Replies)
Discussion started by: slashbash
3 Replies
7. Shell Programming and Scripting
Hello folks,
Here's how my current egrep command works:
egrep "NY|DC|LA|VA|MD" state_data.txt
I am planning to use a file to enter all allowable state values like say a new state_names.lookup with the following data:
NY
DC
LA
VA
MD
egrep "`cat state_names.lookup`"... (6 Replies)
Discussion started by: calredd
6 Replies
8. Shell Programming and Scripting
Hi Guys,
I need hepl on egrep commnad
I have one file and i need grep only specific lines..
EX:
2012-04-01 02:15:14 w
2012-04-01 02:15:14 w
2012-04-01 02:15:14 w
2012-10-26 02:15:14 w
2012-04-01 02:15:14 w
2012-10-26 02:15:14 w
2012-10-26 02:15:14 w
2012-10-26 03:18:56 M... (1 Reply)
Discussion started by: asavaliya
1 Replies
9. UNIX for Beginners Questions & Answers
my file is below
REREGISTER is something to Failed to create the request
Failed to create the request in not easy
I know how REREGISTERcommand i run is
egrep 'REREGISTER|Failed|to|create|the|request' test1
expected output
REREGISTER is something to Failed to create the request
i should... (2 Replies)
Discussion started by: mirwasim
2 Replies
10. Shell Programming and Scripting
Hello guys,
I have an issue when trying to do an egrep -v on a file, let me show you.
I want to filter the last column as to where it filters out the columns with asterisks and zeros ( * and 0 ) it is working properly up to a certain point where I have a value of '10000' which is also getting... (3 Replies)
Discussion started by: evergreen
3 Replies
LEARN ABOUT REDHAT
catgets
CATGETS(3) Library Functions Manual CATGETS(3)
NAME
catgets - get message from a message catalog
SYNOPSIS
#include <nl_types.h>
char *catgets(nl_catd catalog, int set_number, int message_number, const char *message);
DESCRIPTION
catgets() reads the message message_number, in set set_number, from the message catalog identified by catalog, where catalog is a catalog
descriptor returned from an earlier call to catopen(3). The fourth argument message points to a default message string which will be
returned by catgets() if the identified message catalog is not currently available. The message-text is contained in an internal buffer
area and should be copied by the application if it is to be saved or modified. The return string is always terminated with a null byte.
RETURN VALUE
On success, catgets() returns a pointer to an internal buffer area containing the null-terminated message string. On failure, catgets()
returns the value message.
NOTES
These functions are only available in libc.so.4.4.4c and above. The Jan 1987 X/Open Portability Guide specifies a more subtle error
return: message is returned if the message catalog specified by catalog is not available, while an empty string is returned when the mes-
sage catalog is available but does not contain the specified message. These two possible error returns seem to be discarded in XPG4.2 in
favour of always returning message.
CONFORMING TO
XPG4.2
SEE ALSO
catopen(3), setlocale(3)
1998-08-09 CATGETS(3)