?
Solved

shell script ---- how to

Posted on 2004-10-07
2
Medium Priority
?
274 Views
Last Modified: 2010-04-21
I have a command that i need to put in a shell script and then run a cron job with it.


Have a problem with one command.

grep  'multiple LDAP matches' PopProxy_20041007.log


this log file creates a new log file each day but has new name with new date.

Ex:


day one:    PopProxy_20041007.log    then
next day:   PopProxy_20041008.log



how can i make this command  grep  'multiple LDAP matches' PopProxy_20041007.log
to pick up the file that i need it to grep from?


Thanks,
0
Comment
Question by:bt707
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Accepted Solution

by:
tfewster earned 2000 total points
ID: 12250224
grep  'multiple LDAP matches' PopProxy_`date +%Y%m%d`.log
0
 

Author Comment

by:bt707
ID: 12250483
thanks that did it,

Thanks again!!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month15 days, 16 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question