Mercurial > repo
annotate bin/thanks @ 7759:b4341511eb47
<fizzie> ` echo -e \'#! /bin/bash\\ncmd="$1"\\nshift\\nf="$*"\\nif [ -z "$f" && "$f" == *\\\\ * ]; then f="${cmd#* }"; cmd="${cmd%% *}"; fi\\nif [ -z "$f" ]; then echo try: \\\\`f command filename; else "$cmd" "$(< "$f")"; fi\' > bin/f
author | HackBot |
---|---|
date | Wed, 04 May 2016 21:35:48 +0000 |
parents | 685e004a3372 |
children |
rev | line source |
---|---|
5956
685e004a3372
<fizzie> ` sed -i -e \'s/perl/perl -CSDA/\' bin/thanks
HackBot
parents:
4531
diff
changeset
|
1 #!/usr/bin/perl -CSDA |
4531 | 2 $_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Thanks, $_. "; if (/[aeiouyAEIOUY]/) { s/^[^aeiouyAEIOUY]*/Th/; } else { s/^./T/; } print "$_."; |