Finit le jour 2 et commence le 1 et le 3

This commit is contained in:
Clement Desmidt
2025-12-10 15:01:52 +01:00
commit 8b73ada230
6 changed files with 139 additions and 0 deletions

19
add.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/zsh
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
NUMBER=$1
if [ ! -d "${SCRIPT_PATH}/day_${NUMBER}" ]; then
mkdir "${SCRIPT_PATH}/day_${NUMBER}"
else
echo "folder ${SCRIPT_PATH}/day_${NUMBER} already exists"
exit
fi
cd "${SCRIPT_PATH}/day_${NUMBER}" || exit
touch input.txt part_1.php part_2.php
echo "DONE"
exit