view bin/card-by-name @ 10458:332c4d131d82

<shachaf> mkx bin/`^//[[ $# == 2 ]] || { echo "Usage: $0 n cmd" >&2; exit 2; }; for ((i=0; i < $1; i++)); do \\` "$2"; done | sport
author HackBot
date Mon, 20 Mar 2017 01:55:37 +0000
parents c989a1669243
children 9b7441dadcb5
line wrap: on
line source

#!/bin/sh
exec perl -e 'open$I,"<","/hackenv/share/mtg/allsets.txt"or die;$/=""; while(<$I>){/\A(?i)\Q$ARGV[0]/ and print}' "$1"