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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-05-2009
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,390
Quote:
Originally Posted by Browser_ice View Post
like the standard `date` output:

I know I could always do a regular expression to match each date parts. But I need to know if there a special one that will allow me something like :
grep all records in file where any timestamp in it is > $a_given_timestamp
For that I afraid you have to convert your timestamp to min or sec's before comapring it with the given timestamp(that should be also in min or in sec's)