<p>I basically want to do this:</p>

<pre><code>grep 'example.com' www_log &gt; example.com.YYYY-MM-DD-H:i:S.log
</code></pre>

<p>...with of course the filename being <b>example.com.2008-09-27-11:21:30.log</b></p>

<p>I'd then put this in crontab to run daily.</p>

The verbose method:
```
```
grep 'example.com' www_log > `date +example.com.%Y-%m-%d-%H:%M:%S.log`
```
```
The terse method:
```
```
grep 'example.com' www_log > `date +example.com.%F-%T.log`
```
```