When I tried exection grep function in particular directory its working on that directory but when I am trying to execute using absolute paths grep is not working for example
grep `date +%Y-%m-%d` /var/wwww/file/file.log >> /home/filename/file.log
The above command output getting as empty file.
Is it possible to schedule grep in crontab to match text and generate valid output ?