PigInACage wrote: > Hello all. > > I've got a file CSV with 3 column > name,surname,group > > if one of the column has got a space like > Davide,Super Dooper,Group > I cannot use it in a for loop > > for i in `cat list.csv` ; do echo $i ; done > the result is > Davide,Super > Dooper,Group > > how can I have all inone line? > Really thanks. > >
What you posted is a shell script. This list is for questions on Perl. You may get better answers if you post your question on a Linux list. If you're going to use Perl, you want to read and parse CSV with a module, like Text::CSV. Parsing CSV is tricky; so you might as well use a module that takes care of all the problems and is thoroughly debugged. -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/