Created
February 18, 2015 13:13
-
-
Save rmetzler/9e64acdb2822ece42d4f to your computer and use it in GitHub Desktop.
spam templating
This file contains 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
echo "{a|1} {error|bug}" | perl -ple 's^{(.*?)}^ @p=split("[|]",$1); $p[rand @p] ^eg' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
stolen from here https://twitter.com/minaguib/status/567911362367750145