changeset 8003:a4a897101bb9

<b_jonas> `` echo $\'#!/bin/sh\\nexec perl -e\\\'\'\'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?mi:$ARGV[0])/}<$I>; print $c[rand(@c)];\'\\\'\' "$1"\' > bin/random-card && chmod -v a+x bin/random-card
author HackBot
date Mon, 09 May 2016 08:41:23 +0000
parents c87954a531d2
children 76a2af9860ee
files bin/random-card
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/random-card	Mon May 09 08:32:55 2016 +0000
+++ b/bin/random-card	Mon May 09 08:41:23 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{/(?mi:$ARGV[0])/}<$I>; print $c[rand(@c)];' "$1"