View Single Post

  #6 (permalink)  
Old 05-13-2008, 06:53 PM
agn agn is offline
Member
User
 
Join Date: Feb 2008
My distro: OpenBSD/FreeBSD/Debian/Fedora/RHEL
Posts: 69
Rep Power: 1
agn is on a distinguished road
Default

Code:
egrep  '((2[8-9]|3[0-1])/April|0[1-2]/May)/2008' logfile
If your data is ordered you might wanna use the sed instead of grep as the regex may get complex depending on your requirements.
Reply With Quote