The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: date search
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-23-2007
thirumaran thirumaran is offline
Registered User
 

Join Date: Sep 2007
Posts: 3
date search

Hi

Need to serach a file after a particular date for a pattren match

example:
1) ldr.out => last run date is stored in which has value 2007-09-20
2) dberror.log => captures all db errors with date
Requirement
==========
shell script to get the ldr.out date value and search the file dberror.log for particular pattern "dbcrash" after 2007-09-20 till date
if it exists
echo "dbcrash has happened after | 2007-09-20 "

else
exit

Thanks
Thiru
Reply With Quote
Remove advertisements
!!
Forum Sponsor