I basically want to do this:
grep 'example.com' www_log > example.com.YYYY-MM-DD-H:i:S.log
... with, of course, the file name example.com.2008-09-27-11: 21: 30.log
Then I put this in crontab for daily launch.
Detailed method:
grep 'example.com' www_log > `date +example.com.%Y-%m-%d-%H:%M:%S.log`
Close method:
grep 'example.com' www_log > `date +example.com.%F-%T.log`
grep 'example.com' www_log > example.com.$(date +%F-%T).log
, :
grep 'example.com' www_log > example.com.`date +%F-%T`.log
Backticks - . $():
$(command)
:
`command`