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
GREP and Retrieve Line by Line maxmave Shell Programming and Scripting 2 06-03-2008 12:45 PM
How to grep only 1st line St.Fartatric UNIX for Dummies Questions & Answers 3 05-19-2008 07:24 AM
grep the line only if next line matches pbsrinivas Shell Programming and Scripting 11 07-10-2007 09:51 AM
grep numbers range azmathshaikh Shell Programming and Scripting 1 08-08-2005 08:45 AM
grep only one line asoosai UNIX for Dummies Questions & Answers 3 05-30-2003 03:04 PM

Closed Thread
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
  #1 (permalink)  
Old 05-08-2006
aungomarin aungomarin is offline
Registered User
  
 

Join Date: Apr 2006
Location: Thailand
Posts: 15
How to keep(or grep) range of line ?

I have simple text log file look like that

-----------------------------------------

Mon May 8 07:02:41 2006
Some text to show log
Mon May 8 07:05:30 2006
Some text to show log
Some text to show log
Mon May 8 07:11:07 2006
Some text to show log
Mon May 8 07:45:56 2006
Some text to show log
Some text to show log
Mon May 8 08:02:41 2006
Some text to show log
Mon May 8 08:34:22 2006
Some text to show log
Mon May 8 08:59:56 2006
Some text to show log
Some text to show log

-----------------------------------------

I want to check and keep range of 07:30:00 - 08:00:00
How can I do&check condition for grep range of this log ?
Thank you very much
  #2 (permalink)  
Old 05-09-2006
Raom Raom is offline
Registered User
  
 

Join Date: Sep 2005
Location: india
Posts: 79
grep for multiple search strings

grep -e ...

see man grep
Closed Thread

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 05:50 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