Skip to content

Instantly share code, notes, and snippets.

@maxpeterson
Created January 24, 2019 13:08
Show Gist options
  • Select an option

  • Save maxpeterson/d65fe7637d7fdcc255fd76265a8ec38b to your computer and use it in GitHub Desktop.

Select an option

Save maxpeterson/d65fe7637d7fdcc255fd76265a8ec38b to your computer and use it in GitHub Desktop.

Revisions

  1. maxpeterson created this gist Jan 24, 2019.
    22 changes: 22 additions & 0 deletions generate-email-copy.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@


    rm tmp/*
    make test-emails

    (for file in tmp/*; do
    echo "h3. $(grep Subject $file| cut -c 10-)";
    echo;
    echo '{quote}';
    sed '
    : again
    /=$/ {
    N
    s/=\n//
    t again
    }
    ' $file;
    echo '{quote}';
    echo '\\';
    echo ----;
    echo '\\';
    done;) | pbcopy