shell script to find files

I have a directory which contains files with different kinds of extensions .everyday a file with .log gets added to it .i want to extract the file with .log extension which is created with todays date .

thanks in advance

I hope the below command will help you

ls | grep -e "`date "+%Y%m%d"`" | grep ".log"

If the date (in format YYYYMMDD) is not part of the log file then,

find . -mtime -1 -name "*.log"

thanks for the reply vijay