Advent of Code – Day 1

Advent of Code

Well I’m only 13 days late, but better late than never. I had some time to kill tonight and decided to finally jump on this year’s advent of code. Each day consists of 2 problems that you solve. So here goes Day 1…..Spoilers Inside

Bash Command Line Arguments

Computer Code

I frequently write BASH scripts for use at work.  I am a firm believer that if I am going to do something more than once or twice, script the stupid thing out.  When possible, I’m a big fan of using command line arguments when I write scripts just to make things easier and also allow even more scripting, but I always forget how the hell to handle the things…..No more.