Solved

shell script ---- how to

Posted on 2004-10-07
2
242 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
2 Comments
 
LVL 20

Accepted Solution

by:
tfewster earned 500 total points
Comment Utility
grep  'multiple LDAP matches' PopProxy_`date +%Y%m%d`.log
0
 

Author Comment

by:bt707
Comment Utility
thanks that did it,

Thanks again!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now