13 lines
203 B
Bash
13 lines
203 B
Bash
|
#!/bin/bash
|
||
|
# init all files in this repo and then delete this one
|
||
|
|
||
|
if [ "$#" -ne "1" ]; then
|
||
|
echo "usage: $0 <projekt name>"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
find . -type f -exec sed -i "s#%NAME%#${1}#g" {} +
|
||
|
|
||
|
rm -i "$0"
|
||
|
|