#!/bin/bash # init all files in this repo and then delete this one if [ "$#" -ne "1" ]; then echo "usage: $0 " exit 1 fi find . -type f -exec sed -i "s#%NAME%#${1}#g" {} + mkdir -p inc/ rm -i "$0"