Created
January 24, 2019 13:08
-
-
Save maxpeterson/d65fe7637d7fdcc255fd76265a8ec38b to your computer and use it in GitHub Desktop.
Generate the email copy in Confluence Wiki format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Insert results into Confluence as "Confluence Wiki" markup - https://incuna-pm.atlassian.net/wiki/spaces/GBL/pages/323977223/Export+of+system+generated+emails