in reply to csv to flat-file

The quick and dirty way to do what you imply in your question:
perl -nep 's/,/ /;' untested.csv
However, if you need to do anything more intricate with CSV files, have a look at Text::CSV for all your csv manipulation needs.

CU
Robartes-

Replies are listed 'Best First'.
Re: Re: csv to flat-file
by Bilbo (Pilgrim) on Nov 28, 2002 at 09:10 UTC

    You need the 'g' on the end of the regexp, ie s/,/ /g;otherwise only the first comma is replaced (g for global). Also I think this should have read:

    perl -pe 's/,/ /;' untested.csv