Skip to content

Instantly share code, notes, and snippets.

@bitmess
Created June 5, 2017 06:51
Show Gist options
  • Save bitmess/01ec2e6f96fa75b305254d1ef394d5b5 to your computer and use it in GitHub Desktop.
Save bitmess/01ec2e6f96fa75b305254d1ef394d5b5 to your computer and use it in GitHub Desktop.
record Mac SHUTDOWN & OPEN time
#!/bin/sh
PATH=/Users/time_logo.txt
echo `/usr/bin/last shutdown | /usr/bin/sed -n '1p'` "stop" >> $PATH
echo `/bin/date` "start" >> $PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment