1 2 3 4 5
#!/bin/sh echo "const char *$2 =" cat $1|sed 's/\\/\\\\/g'|sed 's/"/\\"/g'|sed 's/^/\"/'|sed 's/$/\\n\"/' echo ";"