Skip to content

Instantly share code, notes, and snippets.

View cslattery's full-sized avatar
💭
/gifs cool cat

Christopher Slattery cslattery

💭
/gifs cool cat
View GitHub Profile

Keybase proof

I hereby claim:

  • I am cslattery on github.
  • I am cslattery (https://keybase.io/cslattery) on keybase.
  • I have a public key ASAi3K1wyliCyWgXMZ_bSbs1qP_O4S-fNP3suQy0NztkHwo

To claim this, I am signing this object:

@cslattery
cslattery / bash_date_until_loop.sh
Last active December 5, 2018 10:02
bash loop through dates
#!/bin/bash
# Doesn't work with BASH on Mac
SCRIPT_NAME=$0
echo $(date +'%Y-%m-%d %H:%M:%S') " $SCRIPT_NAME INFO: Starting."
START_DATE=$1
END_DATE=$2
echo $(date +'%Y-%m-%d %H:%M:%S') " $SCRIPT_NAME INFO: START_DATE is $START_DATE."
echo $(date +'%Y-%m-%d %H:%M:%S') " $SCRIPT_NAME INFO: END_DATE is $END_DATE."