The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Grepping issue.. LinuxRacr Shell Programming and Scripting 9 02-28-2008 12:26 PM
grepping around cbeauty Shell Programming and Scripting 9 08-29-2007 02:56 AM
Grepping for strings t4st33@mac.com UNIX for Dummies Questions & Answers 5 06-21-2007 12:51 AM
grepping for a sentence eloquent99 UNIX for Dummies Questions & Answers 2 04-23-2003 03:40 PM
grepping eloquent99 UNIX for Dummies Questions & Answers 5 04-22-2003 11:20 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-15-2008
nua7 nua7 is offline
Registered User
  
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 353
Please help on grepping

Hi All,
I have a log file and I want to parse the logfile with a script.A sample text is shown below:

I would grep on "return code " on this file. Any idea how the lines above and below the grep patterns could also be extracted.

Thanks!
nua7

Code:
The runLoggingInstall return code is 0
(Jul 15, 2008 2:54:33 PM), Config, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Exec Action (startTomcatLog)
(Jul 15, 2008 2:54:35 PM), Config, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Wait Product Action (waitTomcatStartLog)
(Jul 15, 2008 2:55:37 PM), Config, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Exec Action (logserver_actexec36)
(Jul 15, 2008 2:55:39 PM), Config, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Copy File Ex (copyfilesexdasds37)
(Jul 15, 2008 2:55:39 PM), Config, com.avaya.coreservice.icf.product.actions.CopyFileEx, msg1, CopyFileEx Config Arch : /opt/Avaya/CCR/_avpd/_arch/4.1.0/_conf.jar
(Jul 15, 2008 2:55:43 PM), Config, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Copy File Ex (copydhostfiles38)
(Jul 15, 2008 2:55:43 PM), Config, com.avaya.coreservice.icf.product.actions.CopyFileEx, msg1, CopyFileEx Config Arch : /opt/Avaya/CCR/_avpd/_arch/4.1.0/_conf.jar
(Jul 15, 2008 2:55:47 PM), Config, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Exec Action (setupjboss)
The jboss unzip return code is 1
JBOSS_HOME: /opt/coreservices/jboss-4.0.3SP1
The jboss chown return code is 0
(Jul 15, 2008 2:55:53 PM), Config, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Exec Action (uninstalljboss)
(Jul 15, 2008 2:55:55 PM), Config, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Files (copy_usersync)
(Jul 15, 2008 2:55:56 PM), Config, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Exec Action (install_sync_engine
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0