Created
November 2, 2012 17:35
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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