Mercurial > repo
comparison bin/random-card @ 8750:8934300cd6d1
<b_jonas> `` perl -i -pe \'s/("\\x241)/-- $1/\' bin/random-card
author | HackBot |
---|---|
date | Tue, 05 Jul 2016 13:39:32 +0000 |
parents | 90dbd630fd23 |
children |
comparison
equal
deleted
inserted
replaced
8749:26a06d57db32 | 8750:8934300cd6d1 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 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" | 2 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" |