Mercurial > repo
view bin/hi @ 4279:5810d27cf04f
<myname> echo -e \'#!/bin/sh\\nsed -e \'"\'"\'s/^([^aeiou]+)(.*)$/\\1\\2 shm\\2/\'"\'"\' "$@"\' >bin/shmify
author | HackBot |
---|---|
date | Thu, 09 Jan 2014 19:37:45 +0000 |
parents | c216e32f5e2e |
children |
line wrap: on
line source
#!/usr/bin/perl $_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouyAEIOUY]/) { s/^[^aeiouyAEIOUY]*/H/; } else { s/^./H/; } print "$_.";