# HG changeset patch # User HackBot # Date 1462782775 0 # Node ID c87954a531d2a680faed23b6a4117253c2fb3691 # Parent faebf4569ba3779ecb0382f874cdb8e9cbb5bda9 `` echo $\'#!/bin/sh\\nexec perl -e\\\'\'\'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?i:$ARGV[0])/}<$I>; print $c[rand(@c)];\'\\\'\' "$1"\' > bin/random-card && chmod -v a+x bin/random-card diff -r faebf4569ba3 -r c87954a531d2 bin/random-card --- a/bin/random-card Mon May 09 08:32:52 2016 +0000 +++ b/bin/random-card Mon May 09 08:32:55 2016 +0000 @@ -1,2 +1,2 @@ #!/bin/sh -exec perl -e'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?i:$ARGV[0])/}<$I>; print $c[rand($c)];' "$1" +exec perl -e'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?i:$ARGV[0])/}<$I>; print $c[rand(@c)];' "$1"