Bash script that generates the directory with the files inside for input and parts one and two.
This commit is contained in:
1 parent
06ca3641aa
commit
9301293df9
1 file changed
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
day=$(date +'%d')
|
||||
mkdir -p $day
|
||||
touch "${day}/input"
|
||||
touch "${day}/input.sample"
|
||||
touch "${day}/part1.php"
|
||||
echo "<?php
|
||||
\$input = file('input', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
||||
" >> "${day}/part1.php"
|
||||
touch "${day}/part2.php"
|
||||
|
||||
echo "<?php
|
||||
\$input = file('input', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
||||
" >> "${day}/part2.php"
|
||||
Reference in new issue
Block a user