Solved

shell script ---- how to

Posted on 2004-10-07
2
257 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
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 88
nodeip 9 86
Virtualizing TAPE on dual VIOS 3 101
Linux "time" command output redirection 16 182
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

837 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