command find, wildcard and bash script howto
I am trying to run the command
find /var/log/httpd -iname access_log-201204* > /tmp/accesslist
from the bashscript but I cannot get it to work. How do I provide the * wildcard in bash script for the following script. I am trying to make a list of all the previous months access_log files
YESTERDAY=`date -d " -1 day" +%Y%m%`
if [ $NOW== "1" ]; then
find /var/log/httpd -iname access_log-$YESTERDAY > /tmp/filename
thank you for your help.