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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Display Carmen123 Linux 1 12-04-2006 07:35 AM
X Display BG_JrAdmin SUN Solaris 2 10-01-2005 03:38 AM
ls display shruti_mgp UNIX for Dummies Questions & Answers 3 08-15-2005 08:19 PM
display LiTo UNIX for Dummies Questions & Answers 4 11-04-2004 02:08 PM
DISPLAY from another LAN b5fnpct UNIX for Advanced & Expert Users 2 12-31-2002 01:01 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2007
Registered User
 

Join Date: May 2007
Posts: 31
I need to display it how to do

I have infomation like this

06/10/07 06:45:33
AMQ9002: Channel 'CLUS.TO.IMVP1WASQM' is starting.


06/10/07 09:06:13
AMQ9002: Channel 'CLUS.TO.IMVP1EAIQM' is starting.

EXPLANATION:
Channel 'CLUS.TO.IMVP1EAIQM' is starting.
ACTION:
None.
--------------------------------------------------------------------------
06/11/07 12:46:17
AMQ9545: Disconnect interval expired.

EXPLANATION:
Channel 'CLUS.TO.IMVP1EAIQM' closed because no messages arrived on the
transmission queue within the disconnect interval period.
ACTION:
None.
--------------------------------------------------------------------------
06/11/07 12:46:17
AMQ9001: Channel 'CLUS.TO.IMVP1EAIQM' ended normally.

EXPLANATION:
Channel 'CLUS.TO.IMVP1EAIQM' ended normally.
ACTION:
None.



I need to display infomation by base on date(today) so how to display it
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-10-2007
Registered User
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Code:
dt=$( date +%m"\/"%d"\/"%y )
sed -n "/$dt/,/--*/ p" filename
Reply With Quote
  #3 (permalink)  
Old 06-11-2007
Registered User
 

Join Date: May 2007
Posts: 31
Thank u anbu23
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:40 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0