Help for this page

Select Code to Download


  1. or download this
    $ cat > fred.dat
    abcd    123     456     defg
    cdefg   23              as
            345     235     
    xsd             swe
    
  2. or download this
    $ perl -Mstrict -Mwarnings -e '
        use Tie::File;
    ...
        @fred_data = map { s/(^|\t)(?=\t|$)/${1}Missing/g; $_ } @fred_data
    +;
        untie @fred_data;
    '
    
  3. or download this
    $ cat fred.dat
    abcd    123     456     defg
    cdefg   23      Missing as
    Missing 345     235     Missing
    xsd     Missing swe     Missing