Skip to content

Instantly share code, notes, and snippets.

@pmbuko
Created November 2, 2012 17:35
Show Gist options
  • Save pmbuko/4002976 to your computer and use it in GitHub Desktop.
Save pmbuko/4002976 to your computer and use it in GitHub Desktop.
Scrape the OS X install logs for installed packages and return in nice sorted format
#!/bin/bash
for log in $(/bin/ls -r /var/log/install.log*); do
bzgrep 'Writing receipt' $log | awk '{print $1,$2,$3,$10}'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment