Skip to content

Instantly share code, notes, and snippets.

@epall
Created June 6, 2009 13:17
Show Gist options
  • Save epall/124846 to your computer and use it in GitHub Desktop.
Save epall/124846 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
file = File.open('orders.tsv')
out = File.open('orders.csv', 'w')
file.each_line do |line|
fields = line.split("\t")
out.puts '"'+fields.join('","')+'"'
end
out.close
file.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment