1 2 3 4 5 6 7 8
#!/bin/bash input=$1 output=$2 basename=$(basename $1 .c) echo "#define IGT_LOG_DOMAIN \"$basename\"" > $output cat $input >> $output