Not only are you proposing the same basic solution the OP had (which means processing the log 40+ times) but in addition you are also proposing they use the system's grep command, which you are almost assured will run slower than Perl's regex engine.
If you doubt me, try processing 10 gigs of text file logs using this method...
In reply to Re^2: Break up weblogs
by pzbagel
in thread Break up weblogs
by xorl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |