Easy browsing of compressed system logs

May 15, '02 09:32:17AM

Contributed by: bhines

Mac OS X gzips all your old system.logs. If you just want to find something in them quickly, you can use the "zcat" utility:

zcat /var/log/system.log.3.gz
Pipe the output to 'grep' and 'more' for searches and paging:
zcat /var/log/system.log.3.gz | grep sudo | more
Type man zcat for more options.

Comments (5)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020515093217796