1 2 3 4 5 6 7 8 9 10
#! /bin/bash # template expansion # $1 is the class name used # $2 is the path to the file copied envsubst < $2 > $2.tmp mv $2.tmp $2