Re: FN-FORUM: Tracking MP3 downloads
date posted 1st March 2004 15:41
On Monday 01 Mar 2004 4:13 pm, Rus Foster wrote:
> On Mon, 1 Mar 2004, Dom wrote:
> > On Monday 01 Mar 2004 3:19 pm, Paul J White wrote:
> > > Dom wrote:
> > > > "grep filename.mp3 /var/log/httpd/access_log | wc --lines"
>
> You can make it simpler than that
>
> grep -c filename.mp3 /var/log/httpd/access_log
>
> That should save about 0.00001 seconds :)
You're quite right. The only excuse I can think of is that I often=20
string two or more greps together (e.g. to remove hits from my=20
own IP address range) before piping into something else...