Mercurial > repo
view bin/random-card @ 8772:c7cde9ee53c1
<shachaf> slwd oerjan//s#under#oever#
author | HackBot |
---|---|
date | Sat, 09 Jul 2016 04:45:36 +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"