Skip to content

Instantly share code, notes, and snippets.

@syphoxy
Last active January 4, 2016 00:49
Show Gist options
  • Save syphoxy/8543728 to your computer and use it in GitHub Desktop.
Save syphoxy/8543728 to your computer and use it in GitHub Desktop.
search skype for mac chatsync data for keywords: $ bash search-chatsync "your phrase here"
#!/bin/bash
echo -n "Searching for '$1' in chatsync .. "
find "$HOME/Library/Application Support/Skype" -type d -name chatsync -print0 \
| xargs -0 -I{} find {} -type f -name '*.dat' \
| while read syncFile
do
(strings "$syncFile" | fgrep -qi "$1") \
&& (strings "$syncFile" | less -p"$1")
done
echo "done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment