[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

shell script ---- how to

Posted on 2004-10-07
2
Medium Priority
?
280 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 …
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses

649 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