The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
checking time stamp Manvar Khan UNIX for Dummies Questions & Answers 7 08-22-2007 11:39 AM
how do i put a time stamp in a file name jhamm Shell Programming and Scripting 5 01-29-2007 10:00 AM
Date/Time Stamp JimmyFlip UNIX for Dummies Questions & Answers 0 11-14-2006 11:49 PM
capturing the time stamp pavan_test UNIX for Dummies Questions & Answers 4 07-18-2006 02:35 PM
Date Time Stamp jarich Shell Programming and Scripting 2 07-28-2005 10:28 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 07-28-2006
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
Thumbs up greping with time stamp

Hi all,

I want to grep a file name with time stamp as 30 minutes how can i??.

Ex

I will getting outputs in a file every minutes

I want to grep it by a time intervals of 30 and show it . Any help will be great !


Thanks,
Arun.
  #2 (permalink)  
Old 07-28-2006
Dhruva's Avatar
Dhruva Dhruva is offline
Registered User
  
 

Join Date: Mar 2006
Location: India
Posts: 255
Can you please give an example by contents of file and what you will be searchin here is solution but i am not sure if i understood properly.
keep that grep command in infinite loop and after grep command put sleep function

while [ 5 ]
do
grep........
sleep
done

run this script as backend process
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 04:20 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