Dominique Liberda 11c9fba2c4 | ||
---|---|---|
.. | ||
01.sh | ||
02.sh | ||
README.md |
README.md
day 05 (actually 09, oops)
again, put your things in /tmp/05
part 1
biggest part of what threw me off is the fact that I can't read. I have assumed that multiple crate moves were meant as "grab n crates at once", while in reality they meant "grab one, then another, then another..." That's why L31 has that funky subshell with a rev.
Wrapping everything in () was a fun hack I thought about to parse the header separately from the rest of the code - probably wouldn't be needed if Tulip was fronting and writing the code, she likes to accept input from stdin (whereas I (Paula?) like to accept input from argv)
part 2
... remember L31?
so I removed that | rev
, and that did the trick for the 2nd part.
BOORIIIIING