Mercurial > repo
diff 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 |
line wrap: on
line diff
--- a/bin/random-card Tue Jul 05 13:17:31 2016 +0000 +++ b/bin/random-card Tue Jul 05 13:39:32 2016 +0000 @@ -1,2 +1,2 @@ #!/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" +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"