view bin/json @ 5838:600e1ac6d932

<b_jonas> ` o=bin/culprits-c && echo $\'#!/bin/sh\\n\'\'culprits "$@" | tr \\ \\\\n | sort | uniq -c | sort -rn | tr -s \\\\n\\ \\ \' > "$o" && chmod a+x "$o"
author HackBot
date Sun, 12 Jul 2015 12:44:14 +0000
parents e037173e0012
children
line wrap: on
line source

#!/usr/bin/env python
import sys
import json
data = json.loads(sys.stdin.read().decode('utf-8'))
print eval(sys.argv[1]).encode('utf-8')