diff options
-rw-r--r-- | Readme.textile | 4 | ||||
-rwxr-xr-x | new | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Readme.textile b/Readme.textile index 7f3b23f..fdc1772 100644 --- a/Readme.textile +++ b/Readme.textile @@ -9,6 +9,4 @@ make h2. Creating a new day -bc. cp -r skel day01 -cd day01 -sed -ie 's/DAY = /DAY = 01/' Makefile +bc. ./new 01 @@ -0,0 +1,6 @@ +#!/bin/bash + +D=$1 + +cp -r skel day$D +sed -i "s/DAY = /DAY = ${D}/" day${D}/Makefile |