Skip to content

Instantly share code, notes, and snippets.

@pstengel
Created January 24, 2012 16:55
Show Gist options
  • Save pstengel/1671109 to your computer and use it in GitHub Desktop.
Save pstengel/1671109 to your computer and use it in GitHub Desktop.
Convert a YAML input via STDIN to CSV, stripping property names
#!/usr/bin/env ruby
require 'yaml'
require 'csv'
YAML.load(STDIN).each do |y|
puts y.values.to_csv
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment