Created
October 17, 2012 17:39
-
-
Save leandro/3906945 to your computer and use it in GitHub Desktop.
Search through your whole skype history for any given term
This file contains hidden or 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
| #!/usr/bin/ruby | |
| # searches inside your whole skype history for a specific term | |
| # usage: skype-search term | |
| # don't forget to add inside any /bin directory (like /usr/bin or ~/bin) and do chmod +x skype-search | |
| SKYPE_DB_PATH = "/Users/leandro/Library/Application Support/Skype/leandroico/main.db" | |
| puts `sqlite3 -line '#{SKYPE_DB_PATH}' "SELECT author, from_dispname, datetime(timestamp, 'unixepoch') as date, body_xml FROM Messages where body_xml LIKE '%#{$*.shift}%' ORDER BY timestamp;"` |
I meant multiple terms which are not exactly in order.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search for multiple terms - also all bash:
https://gist.github.com/3909442
😉