• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

shell script ---- how to

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.


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?

1 Solution
grep  'multiple LDAP matches' PopProxy_`date +%Y%m%d`.log
bt707Author Commented:
thanks that did it,

Thanks again!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now