Scripting Question
Hal Burgiss
hal at burgiss.net
Mon Feb 16 11:36:51 UTC 2009
On Mon, Feb 16, 2009 at 3:11 AM, Steve Lamb <grey at dmiyu.org> wrote:
> split(','). Do that once with a CSV with embedded commas and you go
In fairness to the rest of the scripting world, perl, php, ruby, etc
all of which have very similar code:
<?php
$handle = fopen("test.csv", "r");
while (($row = fgetcsv($handle, 1000, ",")) !== FALSE) {
print $row[2] .',' . $row[3] ; //etc
}
Its also possible to have embedded quotes and embedded new lines.
--
Hal
More information about the ubuntu-users
mailing list