Bash script that generates the directory with the files inside for input and parts one and two.
This commit is contained in:
14
aoc.sh
Normal file
14
aoc.sh
Normal file
@@ -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