Skip to content

Instantly share code, notes, and snippets.

@maxpeterson
Created January 24, 2019 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxpeterson/d65fe7637d7fdcc255fd76265a8ec38b to your computer and use it in GitHub Desktop.
Save maxpeterson/d65fe7637d7fdcc255fd76265a8ec38b to your computer and use it in GitHub Desktop.
Generate the email copy in Confluence Wiki format
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
@maxpeterson
Copy link
Author

maxpeterson commented Jan 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment