1 2 3 4 5 6
#!/bin/awk BEGIN { print "unsigned char bootscript[] = { \n"} { for (i = 2; i <= NF ; i++ ) printf "0x"$i"," print "" } END { print "\n};\n" }