Skip to content

Instantly share code, notes, and snippets.

@lehrblogger
Created July 19, 2011 02:26
Show Gist options
  • Save lehrblogger/1091182 to your computer and use it in GitHub Desktop.
Save lehrblogger/1091182 to your computer and use it in GitHub Desktop.
a shell script to search my Adium logs
logdir="/Users/lehrblogger/Dropbox/sync/Adium 2.0/Users/Default/Logs"
buddy=$1
search=$2
find "$logdir"/*/"$buddy" -type f -name \*.xml -exec grep -il $search {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment