Well, write a tiny snippet I could paste into bash or python that would help you do this.