advent-of-c-ode/run_all.sh

8 lines
144 B
Bash
Raw Normal View History

#!/bin/bash
dirs="$(ls . | tr ' ' '\n' | grep day)"
echo "$dirs" | while read -r dir; do
echo "Running $dir"
cd "$dir"; make run; cd ..
done