ref: 94f786ad93b4e5f1f3158062f4a0400c6b1b80df dir: /utils/jvc2pal/
#!/bin/rc awk ' NR==3{ print "pal 256" } NR>3{ x = $1*65536 + $2*256 + $3 printf "0x%06x\n", x }' $*