- or download this
$ cat -vet test.csv
quote at end"$
no quote at end$
quote and space at end" $
quote and tab at end"^I$
- or download this
$ perl -ne 'print $_ if $_ =~ /[^"]$/' < test.csv
quote at end"
no quote at end
quote and space at end"
quote and tab at end"
- or download this
$ perl -ne 'print ">>>$_<<<\n" if $_ =~ /[^"]$/' < test.csv
>>>quote at end"
...
<<<
>>>quote and tab at end"
<<<
- or download this
$ perl -lne 'print $_ if $_ =~ /[^"]$/' < test.csv
no quote at end
quote and space at end"
quote and tab at end"
- or download this
$ perl -ne 'chomp; print "$_\n" if $_ =~ /[^"]$/' < test.csv
no quote at end
quote and space at end"
quote and tab at end"