Linux Uptime in Seconds
From Leo's Notes
This page was last edited on 27 May 2013, at 20:55.
To get the system's uptime in seconds, you can use /proc/uptime.
#!/bin/sh
Uptime=$(</proc/uptime)
Uptime=${Uptime%%.*}
echo $Uptime