1 2 3 4 5 6 7 8 9 10
#!/bin/bash if [ "x$1" == "x" ]; then D=$(date +%d) else D=$1 fi cp -r skel day$D sed -i "s/DAY = /DAY = ${D}/" day${D}/Makefile