Skip to content

Instantly share code, notes, and snippets.

@agustik
Created March 29, 2017 12:44
Show Gist options
  • Save agustik/d9b5d6e868b7617965ac22702e8189bf to your computer and use it in GitHub Desktop.
Save agustik/d9b5d6e868b7617965ac22702e8189bf to your computer and use it in GitHub Desktop.
#!/bin/bash
a=`date --date "$(uptime -s)" '+%s'`;
b=$(date '+%s');
echo "$b - $a" | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment