annotate bin/hi @ 4281:5f388cb353d9

<oerjan> (echo \'#!/bin/bash\'; echo \'echo "$@" | sed -e \'\\\'\'s/^\\([^aeiou]\\+\\)\\(.*\\)$/\\1\\2 shm\\2/\'\\\') >bin/shmify
author HackBot
date Thu, 09 Jan 2014 23:12:03 +0000
parents c216e32f5e2e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
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
HackBot
parents:
diff changeset
1 #!/usr/bin/perl
3386
c216e32f5e2e <ion> sed -i -re \'s/aeiouy/aeiouyAEIOUY/g\' bin/thanks bin/hi && cat bin/thanks
HackBot
parents: 3385
diff changeset
2 $_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouyAEIOUY]/) { s/^[^aeiouyAEIOUY]*/H/; } else { s/^./H/; } print "$_.";