1 2 3 4 5 6 7 8 9 10
#!/bin/bash echo "extern const char $1[];" echo "const char $1[] = \"\\" IFS=$'\n' for line in $(cat $2); do echo $line"\\" done echo "\";"