bz2のログからgrep
httpd-access.log.20080515.bz2 httpd-error.log.20080413.bz2 httpd-error.log.20080620.bz2 httpd-access.log.20080516.bz2 httpd-error.log.20080414.bz2 httpd-error.log.20080621.bz2
みたいなログから、hoge=fugaが入ってる行を探したい
bzgrep -c 'hoge=fuga' httpd-access.log*
展開しながら舐めてってくれる
ちなみに
展開
bunzip2 httpd-error.log.20080621.bz2
圧縮
bzip2 -qf httpd-access.log.20080621