The UNIX and Linux Forums  

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


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find files with specific date and time itik AIX 3 01-18-2008 10:21 AM
To copy the files newer than specific date RAJESHKANNA SUN Solaris 3 08-07-2007 12:44 AM
How to list files with specific created date Draculla Filesystems, Disks and Memory 2 05-03-2007 08:45 PM
List files created between specific date and time jazjit Shell Programming and Scripting 3 04-26-2007 10:19 PM
List files with a specific date... B14speedfreak SUN Solaris 4 06-15-2006 05:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-25-2006
Registered User
 

Join Date: Mar 2006
Posts: 14
Smile specific date on the log

Hi All,

I have problem with my script

grep error /var/adm/message* | grep $1 $2 > /tmp/error-adm$1$2

actually, i want to make the admin enter specific date like "Mar 10"

how i can do that

Thank you

Ahmad
Reply With Quote
Forum Sponsor
  #2  
Old 03-26-2006
Registered User
 

Join Date: Nov 2005
Location: cyberjaya
Posts: 85
how about

grep error /var/adm/message* | grep "$1 $2" > /tmp/error-adm$1$2
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0