spstansbury has asked for the wisdom of the Perl Monks concerning the following question:
I'm hoping that I'm just overlooking something simple.
I'm trying to clean up some badly formatted CSV files that have missing closing quotes. I've tried the following:
perl -ne 'print $_ if $_ =~ /[^"]$/' < test.csvbut that is returning everything. Any thoughts would be appreciated!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to find missing closing quotes in CSV
by Tux (Canon) on Sep 16, 2013 at 16:22 UTC | |
by spstansbury (Monk) on Sep 16, 2013 at 18:04 UTC | |
|
Re: Trying to find missing closing quotes in CSV
by kcott (Archbishop) on Sep 16, 2013 at 23:13 UTC | |
|
Re: Trying to find missing closing quotes in CSV
by Laurent_R (Canon) on Sep 16, 2013 at 19:04 UTC | |
by arrestee (Novice) on Sep 16, 2013 at 23:46 UTC | |
by kcott (Archbishop) on Sep 17, 2013 at 00:00 UTC | |
by Anonymous Monk on Sep 17, 2013 at 02:00 UTC | |
|
Re: Trying to find missing closing quotes in CSV
by hdb (Monsignor) on Sep 17, 2013 at 08:03 UTC | |
by Tux (Canon) on Sep 17, 2013 at 09:00 UTC |