grep problem with date

Hi,

can you correct the below syntax for me?

echo `grep "Issue" new`date +'%y%m%d'`.csv`

I am not able to execute above.

PS: "Issue" is a keyword I am seraching in a new<date>.csv
I am going to use above in i statement as below:

if [ `grep "Issue" new`date +'%y%m%d'`.csv` -eq 0 ]
then
do this
else
do that

echo "grep Issue new`date +'%y%m%d'`.csv"

the whole script can be updated:

grep "Issue" new`date +'%y%m%d'`.csv
if [[ "$?" == "0" ]];
then
   do this  #find 
else 
   do that # not find 
fi

Thanks :slight_smile:
Worked:) I m happy.