hugmeir

Untitled

Dec 28th, 2017
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. Step one: Open a terminal (Cmd+Space, type Terminal, enter)
  2. Step two: Paste this:
  3. perl -wlnE 'next unless /buy ([0-9]+) (.+) for \d+ each from/; $x{$2}+=$1; END { say "Purchases: \n", join "\n", map sprintf("%40s (%d)", $_, $x{$_}), sort { $x{$b} <=> $x{$a} } keys %x }' /Users/*/Library/Application\ Support/KoLmafia/sessions/*20171228*
  4.  
  5. Step three: get output like this:
  6. Purchases:
  7. Knob Goblin seltzer (1493)
  8. ointment of the occult (100)
  9. tomato juice of powerful power (100)
  10. philter of phorce (38)
  11. ectoplasmic orbs (30)
  12. thin black candle (30)
  13. lotion of stench (20)
  14. lotion of sleaziness (20)
  15. lotion of hotness (20)
  16. Ben-Gal™ Balm (15)
  17. Bowl of Scorpions (11)
  18. lotion of spookiness (11)
  19. can of black paint (6)
  20. chewing gum on a string (5)
  21. love song of icy revenge (5)
  22. glittery mascara (5)
  23. big slimy cyst (4)
  24. Louder Than Bomb (4)
  25. Knob Goblin pet-buffing spray (4)
  26. lotion of coldness (4)
  27. oil of expertise (4)
  28. cuppa Frost tea (3)
  29. milk of magnesium (2)
  30. black sheepskin diploma (2)
  31. Xiblaxian encrypted political prisoner (2)
  32. Knob Goblin nasal spray (2)
  33. eldritch elixir (2)
  34. black facepaint (2)
  35. Black Body™ spray (1)
  36. Tales from the Fireside (1)
  37. sponge helmet (1)
  38. love song of naughty innuendo (1)
  39. natto marble soda (1)
  40. Gene Tonic: Constellation (1)
  41. grapefruit (1)
  42. ancient medicinal herbs (1)
  43. pixel star (1)
  44. Gene Tonic: Fish (1)
  45. love song of disturbing obsession (1)
  46. cuppa Insani tea (1)
  47. collapsible baton (1)
  48. moxie magnet (1)
  49. pirate brochure (1)
  50. Gene Tonic: Horror (1)
  51. oil pan (1)
  52. tennis ball (1)
  53. blind-packed die-cast metal toy (1)
  54. Ancient Protector Soda (1)
  55. jumping horseradish (1)
  56. Mesmereyes™ contact lenses (1)
  57. sea salt scrubs (1)
  58.  
  59. Step 4: if you look at the end of the command pasted on step 2, there's today's date -- change it to get data for other dates, or for a bunch of dates at the same time. For example, this does all of December:
  60. perl -wlnE 'next unless /buy ([0-9]+) (.+) for \d+ each from/; $x{$2}+=$1; END { say "Purchases: \n", join "\n", map sprintf("%40s (%d)", $_, $x{$_}), sort { $x{$b} <=> $x{$a} } keys %x }' /Users/*/Library/Application\ Support/KoLmafia/sessions/*201712*
  61.  
  62. While this does the 2*th of December:
  63. perl -wlnE 'next unless /buy ([0-9]+) (.+) for \d+ each from/; $x{$2}+=$1; END { say "Purchases: \n", join "\n", map sprintf("%40s (%d)", $_, $x{$_}), sort { $x{$b} <=> $x{$a} } keys %x }' /Users/*/Library/Application\ Support/KoLmafia/sessions/*2017122*
Advertisement
Add Comment
Please, Sign In to add comment