annotate bin/card-by-name @ 9047:dfc5682ee287

<fizzie> ` sed -i -e \'s/{/if [ -n "$f" ]; then/;s/} |/else echo "that\'\\\'\'s not wise"; fi |/\' bin/wisdom
author HackBot
date Fri, 16 Sep 2016 22:47:19 +0000
parents 8bc55e6adaaf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7994
3a869b13ae19 <b_jonas> `` echo $\'#!/bin/sh\\n\'exec perl -e \'\\\'\'open$I,"<","/hackenv/share/mtg/allsets.txt"or die;$/=""; while(<$I>){/\\A(?i)\\Q$ARGV[0]/ and print}\'\\\'\' "$1"\' > bin/card-by-name && chmod a+x bin/card-by-name
HackBot
parents:
diff changeset
1 #!/bin/sh
7995
8bc55e6adaaf <b_jonas> `` echo $\'#!/bin/sh\\n\'\'exec perl -e \'\\\'\'open$I,"<","/hackenv/share/mtg/allsets.txt"or die;$/=""; while(<$I>){/\\A(?i)\\Q$ARGV[0]/ and print}\'\\\'\' "$1"\' > bin/card-by-name && chmod a+x bin/card-by-name
HackBot
parents: 7994
diff changeset
2 exec perl -e 'open$I,"<","/hackenv/share/mtg/allsets.txt"or die;$/=""; while(<$I>){/\A(?i)\Q$ARGV[0]/ and print}' "$1"