Mercurial > repo
changeset 3053:aa66025be094
<nooodl> mv index.html bin/thanks
author | HackBot |
---|---|
date | Wed, 05 Jun 2013 19:07:48 +0000 |
parents | e92780af8ed6 |
children | f57219ffa290 |
files | bin/thanks index.html |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/thanks Wed Jun 05 19:07:28 2013 +0000 +++ b/bin/thanks Wed Jun 05 19:07:48 2013 +0000 @@ -1,2 +1,2 @@ -#!/bin/sh -echo $1 | sed 's/^[^aeiou]*\(.*\)/Thanks, \0. Th\1./' \ No newline at end of file +#!/usr/bin/perl +$_ = $ARGV[0] || `words`; print "Thanks, $_. "; if (/[aeiouy]/) { s/^[^aeiouy]*/Th/; } else { s/^./T/; } print "$_."; \ No newline at end of file