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