Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google site




Thread: help in grep
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-11-2008
ali560045's Avatar
ali560045 ali560045 is offline
Registered User
 

Join Date: Oct 2007
Posts: 328
help in grep

how to grep this date format

2008-01-10
2008-01-05
2008-01-02

i wrote the format as

date +"%Y-%m-%d"

but this format is showing me the current date i,e 2008-01-11....i dnt want current date i want the previous date.

so plz any1 help me in giving me the date format for grepping other dates other than todays date.................
Sponsored Links