Mercurial > repo
view bin/random-card @ 9000:d72aef993623
<oerjan> addquote <hppavilion[1]> I think we need to make Greece an independent country
author | HackBot |
---|---|
date | Thu, 01 Sep 2016 00:31:47 +0000 |
parents | 8934300cd6d1 |
children |
line wrap: on
line source
#!/bin/sh exec perl -e'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?mi:$ARGV[0])/}<$I>; print($c[rand(@c)] || "No card found.");' -- "$1"