From: "NAKAMURA, Hiroshi" Date: 2003-10-03T11:39:08+09:00 Subject: Re: CSV Files and Postgres (and Ruby) Hi, > From: "Clark Jefcoat" > Sent: Friday, October 03, 2003 11:28 AM > I found a perl script to do the CSV to tab conversion, > but just wanted to put a ruby version online (even if it is > only 3 lines long). To run the script I used ruby 1.8 which > includes the csv library. ruby -rcsv -e ' CSV.generate("foo.tsv", ?\t) do |f| CSV.parse("foo.csv", ?,) do |row| # ?, is just for symmetry. f.add_row(row) end end ' should work. Regards, // NaHi