add awk script to generate html preview from card script for checking card images

master
melvinzhang 2015-03-22 13:24:16 +08:00
parent 5c8e188cd4
commit 80b8f0900b
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# input: card scripts
# output: html file with name and image
BEGIN {
FS = "="
}
/name=/ {
print "<p>" $2 "</p>"
}
/image=/ {
print "<img src=\"" $2 "\"/>"
}