changeset 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 81eff52d6555
children c216e32f5e2e
files bin/hi
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/hi	Wed Aug 07 18:09:59 2013 +0000
@@ -0,0 +1,2 @@
+#!/usr/bin/perl
+$_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouy]/) { s/^[^aeiouy]*/H/; } else { s/^./H/; } print "$_.";
\ No newline at end of file