Monthly Archives: September 2008

log file processing

I seem to have been doing lots of this kind of thing recently. grep "FOUND query" bak0*b_hac-server.log | awk ‘{print $8}’ | awk ‘BEGIN { FS = "|" }; { print $6 }’ | sort | uniq -c Remember, usually you want to sort before uniq.