Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Mar 23rd, 2012  |  syntax: Bash  |  size: 0.27 KB  |  hits: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #! /bin/bash
  2.  
  3. user=USERNAME
  4. let count=$count+1
  5. karma=$(
  6. curl --connect-timeout 1 -fsm 3 http://www.reddit.com/user/$user/about.json |
  7. awk '{match($0, "k_karma\": ([0-9]+)", a);
  8. match($0, "t_karma\": ([0-9]+)", b);
  9. print "L:", a[1], "C:", b[1];}'
  10. )
  11. echo $karma