Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grep for date question.... C Shell script 1

Status
Not open for further replies.

jo90

Programmer
Jun 19, 2002
30
GB
Hi,

I was wondering if anybody knew the correct syntax to grep a log file such as;

[06/Aug/2002:07:34:56-61-2] Process Error

for todays day & time? If anybody knows this a sample syntax I have is

export DATE=`date +%b%d%Y`

grep $DATE file.log

it would be appreciated.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top