view bin/blessyou @ 9565:acff4cf8b291

<oerjan> mkx bin/icao//grep "$1" share/airports.dat | cut -d \',\' -f 6
author HackBot
date Sun, 30 Oct 2016 23:16:00 +0000
parents 4cc6f4753408
children fea38c2307ee
line wrap: on
line source

#!/usr/bin/perl
$_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Bless you, $_. "; if (/[aeiouyAEIOUY]/) { s/^[^aeiouyAEIOUY]*/Bl/; } else { s/^./B/; } print "$_.";