15 lines
360 B
Bash
15 lines
360 B
Bash
#!/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"
|