emulate Linux's `last -x` on Mac OS X I'm currently trying to get a missing cronjob runner script thing to work, but it was written for Arch Linux, which is pretty different from Mac OS X, and one of the things that it tries to do is run last -x, which fails since Mac's version of last doesn't include a -x option.  

According to About.com -x displays the system shutdown entries and run level changes.  Is there any way to emulate this behavior in Mac OS X?

Here's an excerpt from the man page for last on Ubuntu Linux:
Is the following sufficient?

uname -a
Darwin Macmini-i53.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64

last | grep -e boot -e shut
reboot    ~                         Mon Dec  2 09:57 
shutdown  ~                         Mon Dec  2 09:54 
reboot    ~                         Fri Nov 29 12:45 
shutdown  ~                         Fri Nov 29 12:40