Skip to content

Instantly share code, notes, and snippets.

@herry13
Created September 9, 2014 06:15
Show Gist options
  • Select an option

  • Save herry13/502fb573da32a5295e97 to your computer and use it in GitHub Desktop.

Select an option

Save herry13/502fb573da32a5295e97 to your computer and use it in GitHub Desktop.
An oneliner to read and print YAML with Ruby (mainly, to verify a YAML)
ruby -e "require 'yaml'; puts ((YAML.load(STDIN.read)).to_yaml)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment