annotate bin/random-card @ 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 90dbd630fd23
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8000
ea34842a51f6 <b_jonas> `` echo $\'#!/bin/sh\\nexec perl -e\\\'\'\'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?:$ARGV[0])/}<$I>; print $c[rand($c)];\'\\\'\' "$1"\' > bin/random-card && chmod -v a+x bin/random-card
HackBot
parents:
diff changeset
1 #!/bin/sh
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
HackBot
parents: 8002
diff changeset
2 exec perl -e'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?mi:$ARGV[0])/}<$I>; print $c[rand(@c)];' "$1"