begin quoting Gabriel Sechan as of Tue, Feb 20, 2007 at 05:43:01PM -0600: > [snip] > If not, it should be trivially easy to make a perl program that reads csv
You're right that it's pretty trivial. I keep recreating the same solution rather than generalizing it, just because it doesn't seem to keep around the scripts once done with 'em. I imagine Andrew would reach for python before perl on this, unless there's a one-liner that would do it. :) > and turns it into a table. Suck up the file, output table header, foreach > line in the file, split on ',' and output the row. The problem with CSV is that they generally allow quoted commas; that is, folks generally consider this to be a valid CSV file: foo,bar,baz bid,"badda, boom", bad qux, quux, "quuux" (Especially spreasheets). Tab-delimited tends to work better (for me), until you get to those programs that treat multiple tabs as a single delimiter. -- Plus, it's hard to tell tabs from spaces in some editors. Stewart Stremler -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
