47 Ronin Multimedia

Excellence in Execution: Design, Code, and Web Media
Ads

zcat broken on Mac OS X: Feature or bug?

Apparently on Mac OS X 10.4.7 (and earlier), the zcat command doesn’t work. zcat is a very useful util to read through gzip-archived system logs and usually works by just typing zcat /path/to/log.gz

However, it appears to be broken on the Mac. For example, this is actual output:

[user@host:~] zcat /var/log/system.log.0.gz
zcat: /var/log/system.log.0.gz.Z: No such file or directory
[user@host:~] zcat -S .gz /var/log/system.log.0.gz
zcat: /var/log/system.log.0.gz.Z: No such file or directory

Similar Posts:

Post Metadata

Date
September 11th, 2006

Author
Glenn Batuyong

Category

Tags

  • You should try gzcat :-)
  • yes, gzcat works well thanks!
  • daz
    same problem with zcat; tried bzcat?
  • Clarification: zcat is still broken in Mac OS X 10.5.x ...apparently Apple wants us to switch over to bzcat. In earlier OS releases, archived system logs were stored gzipped. Now they're bzipped Thanks daz, that works perfectly.
blog comments powered by Disqus