#!/bin/sh ifdef() { awk '{printf("#ifdef %s\n"\ "\t{\"%s\",\t%s},\n"\ "#endif\n", $2, $1, $2)}' > $1 } cat <