magarena/scripts/rename_card.awk

13 lines
128 B
Awk
Raw Normal View History

BEGIN {
FS = "="
}
$1 == "primitive" {
cname = $2
}
$1 == "id" {
cid = $2
print "mv \"" cname ".jpg\" " cid
}