misc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.alexwennerberg.com/misc
Log | Files | Refs | README | LICENSE

commit b490366ccfdf93f62a2d33742e7add7ad391526c
parent 847b0385d8b8af2a570f61f0d412a3a2dba94331
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 28 May 2023 13:59:37 -0400

add mtg card link script

Diffstat:
Amtg.awk | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/mtg.awk b/mtg.awk @@ -0,0 +1,6 @@ +#!/usr/bin/awk -f +# Generates html links for a Magic: the Gathering card +{ + print "<a href='https://scryfall.com/search?q=!\""gensub(/'/, "\\&#39;", "g", + gensub(" ", "+", "g"))"\"" "'>"$0"</a>" +}