Tag command-line

Minifying JSON with Ruby

How to take a pretty-printed JSON string and replace it with a minifed JSON string using Ruby.

  Learn a little jq, awk and sed

This is a great post - I thoroughly recommend learning how to use common commandline tools such as awk, grep, sed, but also adopting a scripting language for more complicated stuff. I don't mean Bash, or another shell scripting language, but something like Node, Python or Ruby, as it'll give you the opportunity for a greater standard library, as well as tonnes of packages built by others.

by Jamie Tanna's profile image Jamie Tanna . Tagged with: command-line (19) .