From: Joel Pearson Date: 2013-04-26T01:26:29+09:00 Subject: Re: BEGINNER - Convert csv file to tsv Jon R. wrote in post #1106750: > I wanted to try and use ruby rather than a library Here's an example without using CSV: File.write( 'source.tsv', File.readlines( 'source.csv' ).map do |l| l.chomp.gsub( /^"|"$/, '' ).gsub( /","/, "\t" ) end.join("\n") ) -- Posted via http://www.ruby-forum.com/.