Mercurial > repo
diff bin/blessyou @ 5654:4cc6f4753408
<tswett> sed -e \'s_Thanks_Bless you_\' -e \'s_/Th/_/Bl/_\' -e \'s_/T/_/B/_\' < bin/thanks > bin/blessyou
author | HackBot |
---|---|
date | Sun, 21 Jun 2015 23:57:03 +0000 |
parents | |
children | fea38c2307ee |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/blessyou Sun Jun 21 23:57:03 2015 +0000 @@ -0,0 +1,2 @@ +#!/usr/bin/perl +$_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Bless you, $_. "; if (/[aeiouyAEIOUY]/) { s/^[^aeiouyAEIOUY]*/Bl/; } else { s/^./B/; } print "$_."; \ No newline at end of file