Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Displaying the Second Line of the Grep Search Results Post 302442025 by girija on Tuesday 3rd of August 2010 06:03:06 AM
Old 08-03-2010
Hi .. if u have "disconnect" in consecutive lines .... the first alone printing not the second line.

Example : a file has three line
--------------

Error disconnect :
Error disconnect 1
Error in 1 line:

Here the second line "Error disconnect 1" is printing not the "Error in 1 line:"
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

diffrent results between command line and scripted grep

When I type a command at the command line it supplies one result and the exact same command in a script egrep '^01|^02|^03|^04' file > fileout count = 29353 same count in the script yields a count of 23492 is there any reason this could be happening. (1 Reply)
Discussion started by: r1500
1 Replies

2. Shell Programming and Scripting

search whole line using grep

hi, how to search whole line using grep in a file. (1 Reply)
Discussion started by: useless79
1 Replies

3. UNIX for Dummies Questions & Answers

Multiple Line search using grep

Hi All, I am trying to search multiple lines in file using grep /sed.And i cant seem to make it work. The File looks like this 5012001,100,AUTOBATCH,FEE,DAILYFEE,0,0 4241 SERVICE DENIED 5012002,100,AUTOBATCH,FEE,DAILYFEE,0,0 4241 SERVICE DENIED... (6 Replies)
Discussion started by: pistachio
6 Replies

4. Shell Programming and Scripting

Search for Files and clear line after results

Hi, this is a little strange, i have the following code: if then echo -e "psa/admin/sbin present " which shows if a directory is present, but what I would like it to do is show the line and then remove its self and show the rest of the script... no idea what to look... (1 Reply)
Discussion started by: foz
1 Replies

5. UNIX for Dummies Questions & Answers

grep line pattern search

Hello everyone, I have been trying to get a list of all files containing a line of this type: };#followed by anything with any spaces (0 or more or 0 or more tabs) before the } and between each of the characters. I have been trying this : grep '*}*;*#*' *.c but I have not been fully... (1 Reply)
Discussion started by: gio001
1 Replies

6. Shell Programming and Scripting

String: Grep / SED for multy line search

Hi, At first I want to please you to provide the solution with grep/sed if possible. :cool: File looks like: wished result: so I want in a new file BLUE@@RED string from first line like: grep "/folder_start" cs_src > tmp1 string from second line: grep "/main" cs_src... (14 Replies)
Discussion started by: unknown7
14 Replies

7. Shell Programming and Scripting

Can ctag and cscope support recording search results and displaying the history results ?

Hello , When using vim, can ctag and cscope support recording search results and displaying the history results ? Once I jump to one tag, I can use :tnext to jump to next tag, but how can I display the preview search result? (0 Replies)
Discussion started by: 915086731
0 Replies

8. Shell Programming and Scripting

Comparing fields of two files and displaying results

Hello , I am trying to compare two files i.e one master file and the other exclusion file. If the second field of masterfile is oracle8 then I need to compare the 3rd field of master file with the 1st field of all the rows of exclusion file else I need to compare 2nd field from master file with... (2 Replies)
Discussion started by: rahul2662
2 Replies

9. Shell Programming and Scripting

Multiple Results of Grep in one Line/String?

Hello, I have a Textfile sees like this "Word1":aksdfjaksdf "Word2":askdfjalsdkfdlsjfasldfj "This is Word3":asdfkjalskdfj what i need is a string which sees like this Word1;Word2;This is Word3 Conclusion always the text within "" which is before the : i tried it with grep.... (10 Replies)
Discussion started by: SwordMaster
10 Replies

10. What is on Your Mind?

Search Results (Search, New, and Today's Topics) Animation Switch

Hey, I added an animation switch on the search results page; so by default the thread previews are off, but if you want to look at them, just click on the green button and the thread previews will turn on (and back off). See image and attached animation: ... (1 Reply)
Discussion started by: Neo
1 Replies
Proxy Constants(3)					       globus gsi proxy core						Proxy Constants(3)

NAME
Proxy Constants - Enumerations enum globus_gsi_proxy_error_t { GLOBUS_GSI_PROXY_ERROR_SUCCESS = 0, GLOBUS_GSI_PROXY_ERROR_WITH_HANDLE = 1, GLOBUS_GSI_PROXY_ERROR_WITH_HANDLE_ATTRS = 2, GLOBUS_GSI_PROXY_ERROR_WITH_PROXYCERTINFO = 3, GLOBUS_GSI_PROXY_ERROR_WITH_PROXYPOLICY = 4, GLOBUS_GSI_PROXY_ERROR_WITH_PATHLENGTH = 5, GLOBUS_GSI_PROXY_ERROR_WITH_X509_REQ = 6, GLOBUS_GSI_PROXY_ERROR_WITH_X509 = 7, GLOBUS_GSI_PROXY_ERROR_WITH_X509_EXTENSIONS = 8, GLOBUS_GSI_PROXY_ERROR_WITH_PRIVATE_KEY = 9, GLOBUS_GSI_PROXY_ERROR_WITH_BIO = 10, GLOBUS_GSI_PROXY_ERROR_WITH_CREDENTIAL = 11, GLOBUS_GSI_PROXY_ERROR_WITH_CRED_HANDLE = 12, GLOBUS_GSI_PROXY_ERROR_WITH_CRED_HANDLE_ATTRS = 13, GLOBUS_GSI_PROXY_ERROR_ERRNO = 14, GLOBUS_GSI_PROXY_ERROR_SETTING_HANDLE_TYPE = 15, GLOBUS_GSI_PROXY_INVALID_PARAMETER = 16, GLOBUS_GSI_PROXY_ERROR_SIGNING = 17, GLOBUS_GSI_PROXY_ERROR_LAST = 18 } Enumeration Type Documentation enum globus_gsi_proxy_error_t Proxy Error codes. Enumerator: GLOBUS_GSI_PROXY_ERROR_SUCCESS Success - never used. GLOBUS_GSI_PROXY_ERROR_WITH_HANDLE Invalid proxy handle state. GLOBUS_GSI_PROXY_ERROR_WITH_HANDLE_ATTRS Invalid proxy handle attributes state. GLOBUS_GSI_PROXY_ERROR_WITH_PROXYCERTINFO Error with ASN.1 proxycertinfo structure. GLOBUS_GSI_PROXY_ERROR_WITH_PROXYPOLICY Error with ASN.1 proxypolicy structure. GLOBUS_GSI_PROXY_ERROR_WITH_PATHLENGTH Error with proxy path length. GLOBUS_GSI_PROXY_ERROR_WITH_X509_REQ Error with the X.509 request structure. GLOBUS_GSI_PROXY_ERROR_WITH_X509 Error with X.509 structure. GLOBUS_GSI_PROXY_ERROR_WITH_X509_EXTENSIONS Error with X.509 extensions. GLOBUS_GSI_PROXY_ERROR_WITH_PRIVATE_KEY Error with private key. GLOBUS_GSI_PROXY_ERROR_WITH_BIO Error with OpenSSL's BIO handle. GLOBUS_GSI_PROXY_ERROR_WITH_CREDENTIAL Error with credential. GLOBUS_GSI_PROXY_ERROR_WITH_CRED_HANDLE Error with credential handle. GLOBUS_GSI_PROXY_ERROR_WITH_CRED_HANDLE_ATTRS Error with credential handle attributes. GLOBUS_GSI_PROXY_ERROR_ERRNO System error. GLOBUS_GSI_PROXY_ERROR_SETTING_HANDLE_TYPE Unable to set proxy type. GLOBUS_GSI_PROXY_INVALID_PARAMETER Invalid function parameter. GLOBUS_GSI_PROXY_ERROR_SIGNING A error occured while signing the proxy certificate. GLOBUS_GSI_PROXY_ERROR_LAST Last marker - never used. Author Generated automatically by Doxygen for globus gsi proxy core from the source code. Version 6.2 Mon Apr 30 2012 Proxy Constants(3)
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy