aoc-2021/garbage.sh

12 lines
200 B
Bash

#!/usr/bin/bash
buff="var data = ["
counter=0
while IFS= read -r line; do
buff+="$line <= $counter,"
counter=$((counter+1))
done < "aoc/aoc_1_input.txt"
buff+="];"
echo $buff >> aoc_1.able