Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Egrep command is not working for me Post 303000630 by RavinderSingh13 on Sunday 16th of July 2017 01:20:40 PM
Old 07-16-2017
Hello mirwasim,

It is showing like that output because you are giving an OR condition which means any of these words if they are coming into a line then print it(so that is why other than 1st lines are getting printed too because any of the words are coming there), if words sequence will be same as per shown sample Input_file then following may help you in same.
Code:
egrep 'REREGISTER.*Failed.*to.*create.*the.*request'    Input_file

Thanks,
R. Singh
These 2 Users Gave Thanks to RavinderSingh13 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

egrep -e not working...!

:cool: fedora core 2 version 2.6.8-1.521 gnu/linux the last version of redhat that I was working with linux 8.0 a special version that came with a book.. on this version and on spider tools linux 0.9 the second version I worked with.. when i envoked egrep -e from file1 to file2 I would get the... (4 Replies)
Discussion started by: moxxx68
4 Replies

2. Shell Programming and Scripting

egrep command

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

3. Shell Programming and Scripting

Help with egrep command

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

4. Shell Programming and Scripting

Query regarding egrep command

Hi All, I am having a query regarding the usage of egrep command. i am having two unix environmanets in environment when i am using "egrep -f" it is working fine and other unix environment i am getting a syntax error. Please let me know if i need to set any environmane variables. ... (12 Replies)
Discussion started by: Sriram.Vedula53
12 Replies

5. Shell Programming and Scripting

egrep command and order

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

matching a regex using egrep not working

Hi, I'm trying to validate if a string matches a regular expression, but it is not working. Am I missing something? Do I need to scape any of the characters? if echo 'en-GB' | egrep '({1,8})(-{1,8})*' >/dev/null; then echo Valid value fi Thanks in advance (6 Replies)
Discussion started by: skrtxao
6 Replies

7. Shell Programming and Scripting

Help with egrep command

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

8. Shell Programming and Scripting

Help with egrep command

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

9. Shell Programming and Scripting

help in egrep command in file

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

10. Shell Programming and Scripting

Egrep not working with -f option

Hi, I am trying to find out patterns in file 1 using patterns stored in file 2. Following is the code FILE1=inputfilename FILE2=blacklist blacklist 1203 97715555 20afEOF egrep -f $FILE2 $FILE1 but the above code is not working either using egrep or grep. Just for your... (10 Replies)
Discussion started by: siramitsharma
10 Replies
Credential Constants(3) 				       globus gsi credential					   Credential Constants(3)

NAME
Credential Constants - Enumerations enum globus_gsi_cred_error_t { GLOBUS_GSI_CRED_ERROR_SUCCESS = 0, GLOBUS_GSI_CRED_ERROR_READING_PROXY_CRED = 1, GLOBUS_GSI_CRED_ERROR_READING_HOST_CRED = 2, GLOBUS_GSI_CRED_ERROR_READING_SERVICE_CRED = 3, GLOBUS_GSI_CRED_ERROR_READING_CRED = 4, GLOBUS_GSI_CRED_ERROR_WRITING_CRED = 5, GLOBUS_GSI_CRED_ERROR_WRITING_PROXY_CRED = 6, GLOBUS_GSI_CRED_ERROR_CHECKING_PROXY = 7, GLOBUS_GSI_CRED_ERROR_VERIFYING_CRED = 8, GLOBUS_GSI_CRED_ERROR_WITH_CRED = 9, GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT = 10, GLOBUS_GSI_CRED_ERROR_WITH_CRED_PRIVATE_KEY = 11, GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT_CHAIN = 12, GLOBUS_GSI_CRED_ERROR_ERRNO = 13, GLOBUS_GSI_CRED_ERROR_SYSTEM_CONFIG = 14, GLOBUS_GSI_CRED_ERROR_WITH_CRED_HANDLE_ATTRS = 15, GLOBUS_GSI_CRED_ERROR_WITH_SSL_CTX = 16, GLOBUS_GSI_CRED_ERROR_WITH_CALLBACK_DATA = 17, GLOBUS_GSI_CRED_ERROR_CREATING_ERROR_OBJ = 18, GLOBUS_GSI_CRED_ERROR_KEY_IS_PASS_PROTECTED = 19, GLOBUS_GSI_CRED_ERROR_NO_CRED_FOUND = 20, GLOBUS_GSI_CRED_ERROR_SUBJECT_CMP = 21, GLOBUS_GSI_CRED_ERROR_GETTING_SERVICE_NAME = 22, GLOBUS_GSI_CRED_ERROR_BAD_PARAMETER = 23, GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT_NAME = 24, GLOBUS_GSI_CRED_ERROR_LAST = 25 } enum globus_gsi_cred_type_t Enumeration Type Documentation enum globus_gsi_cred_error_t Credential Error codes. Enumerator: GLOBUS_GSI_CRED_ERROR_SUCCESS Success - never used. GLOBUS_GSI_CRED_ERROR_READING_PROXY_CRED Failed to read proxy credential. GLOBUS_GSI_CRED_ERROR_READING_HOST_CRED Failed to read host credential. GLOBUS_GSI_CRED_ERROR_READING_SERVICE_CRED Failed to read service credential. GLOBUS_GSI_CRED_ERROR_READING_CRED Failed to read user credential. GLOBUS_GSI_CRED_ERROR_WRITING_CRED Failed to write credential. GLOBUS_GSI_CRED_ERROR_WRITING_PROXY_CRED Failed to write proxy credential. GLOBUS_GSI_CRED_ERROR_CHECKING_PROXY Error checking for proxy credential. GLOBUS_GSI_CRED_ERROR_VERIFYING_CRED Failed to verify credential. GLOBUS_GSI_CRED_ERROR_WITH_CRED Invalid credential. GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT Invalid certificate. GLOBUS_GSI_CRED_ERROR_WITH_CRED_PRIVATE_KEY Invalid private key. GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT_CHAIN Invalid certificate chain. GLOBUS_GSI_CRED_ERROR_ERRNO System error. GLOBUS_GSI_CRED_ERROR_SYSTEM_CONFIG A Globus GSI System Configuration call failed. GLOBUS_GSI_CRED_ERROR_WITH_CRED_HANDLE_ATTRS Invalid credential handle attributes. GLOBUS_GSI_CRED_ERROR_WITH_SSL_CTX Faulty SSL context. GLOBUS_GSI_CRED_ERROR_WITH_CALLBACK_DATA Faulty callback data. GLOBUS_GSI_CRED_ERROR_CREATING_ERROR_OBJ Failed to aggregate errors. GLOBUS_GSI_CRED_ERROR_KEY_IS_PASS_PROTECTED Error reading private key - the key is password protected. GLOBUS_GSI_CRED_ERROR_NO_CRED_FOUND Couldn't find credential to read. GLOBUS_GSI_CRED_ERROR_SUBJECT_CMP Credential subjects do not compare. GLOBUS_GSI_CRED_ERROR_GETTING_SERVICE_NAME Unable to obtain service name from CN entry. GLOBUS_GSI_CRED_ERROR_BAD_PARAMETER Invalid function parameter. GLOBUS_GSI_CRED_ERROR_WITH_CRED_CERT_NAME Failed to process certificate subject. GLOBUS_GSI_CRED_ERROR_LAST End marker - never used. enum globus_gsi_cred_type_t Credential Type An enum representing a GSI Credential Type which holds info about the type of a particular credential. The three types of credential can be: GLOBUS_PROXY, GLOBUS_USER, or GLOBUS_HOST. See also: Credential Handle Management Author Generated automatically by Doxygen for globus gsi credential from the source code. Version 5.3 Mon Apr 30 2012 Credential Constants(3)
All times are GMT -4. The time now is 10:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy