This repository contains my solutions for the Advent of Code 2023 challenges, implemented in Bash. More specifically, using Bash and unix utilities.
Each day's solutions are organized into separate directories.
/Day-XX
├── input.txt
├── part-1.sh
└── part-2.sh
- Clone the repository:
git clone https://github.com/Sekky61/aoc-bash.git
cd aoc-bash
- Navigate to the specific day's directory (a needed step):
cd Day-01
- Run the solution scripts:
bash part-1.sh
bash part-2.sh
-
Create the file
cookies.txt
in the root directory and paste your session cookie from the AoC website into it. -
Run the script with the desired day number:
./create.sh <day_number>
-
The script creates a directory (Day-<day_number>), an empty input.txt file, and populates part-1.sh and part-2.sh with templates.
-
Navigate to the day's directory and start solving the challenges!