Help for this page

Select Code to Download


  1. 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$
    
  2. 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"
    
  3. or download this
    $ perl -ne 'print ">>>$_<<<\n" if $_ =~ /[^"]$/' < test.csv
    >>>quote at end"
    ...
    <<<
    >>>quote and tab at end"    
    <<<
    
  4. or download this
    $ perl -lne 'print $_ if $_ =~ /[^"]$/' < test.csv
    no quote at end
    quote and space at end" 
    quote and tab at end"
    
  5. 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"