Skip to content

Instantly share code, notes, and snippets.

@rmetzler
Created February 18, 2015 13:13
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 rmetzler/9e64acdb2822ece42d4f to your computer and use it in GitHub Desktop.
Save rmetzler/9e64acdb2822ece42d4f to your computer and use it in GitHub Desktop.
spam templating
echo "{a|1} {error|bug}" | perl -ple 's^{(.*?)}^ @p=split("[|]",$1); $p[rand @p] ^eg'
@rmetzler
Copy link
Author

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