Here's a snippet to do this.
But is there a better way, i.e. a methodology which has no side effects ?for f in `find ./ -name *json`; do echo $f ; python -mjson.tool $f > /tmp/1 && cp /tmp/1 $f ; done
I asked on stackoverflow. We'll see if someone responds !
No comments:
Post a Comment