Skip to content

Instantly share code, notes, and snippets.

@tdl
Created July 9, 2013 09:57
Show Gist options
  • Save tdl/5956158 to your computer and use it in GitHub Desktop.
Save tdl/5956158 to your computer and use it in GitHub Desktop.
Pretty print YAML with Ruby
ruby -ryaml -rpp -e "pp YAML.load(STDIN)" < infile > outfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment