On Tue, May 17, 2011 at 01:33:39AM +0200, Alan McKinnon wrote: > grep "GET /Tmp/Linux/G" | /var/log/apache2/access_log | grep-v <myip> | \ > awk '{print $1}' | sort | uniq | wc > > In true grand Unix tradition you cannot get quicker, dirtier or more > effective > than that >
You can replace "sort | uniq" by "sort -u" And the "Grand Unix Tradition" probably would 'cut' instead of awk :) While you are at it, an incantation that pipes grep to awk? Seriously? W -- Willie W. Wong ww...@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton