Mercurial > repo
view bin/hi @ 3385:6d9cebb0eac5
<ion> sed -re \'s/\\<Thanks,/Hi/; s/\\<Th\\>/H/; s/\\<T\\>/H/\' <bin/thanks >bin/hi && chmod +x bin/hi && cat bin/hi
author | HackBot |
---|---|
date | Wed, 07 Aug 2013 18:09:59 +0000 |
parents | |
children | c216e32f5e2e |
line wrap: on
line source
#!/usr/bin/perl $_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouy]/) { s/^[^aeiouy]*/H/; } else { s/^./H/; } print "$_.";