Commit d63e786b authored by Daniel STAN's avatar Daniel STAN

extract-python script

parent 5d307c14
#!/usr/bin/env python
import sqlite3
import os
c = sqlite3.connect(os.path.expanduser('~/.ipython/profile_default/history.sqlite'))
r = c.execute('select * from history where session=(select max(session) from sessions);')
for line in iter(r.fetchone, None):
print line[-1].encode('utf-8')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment