We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

mbadran on 08/26/06


Tagged

Bash linux uptime


Versions (?)


Who likes this?

8 people have marked this snippet as a favorite

samuraicoder
hides
yuconner
berkes
fugue
willcodeforfood
copyleft
Leech


uptime


Published in: Bash 


  1. uptime | awk {'print $3" "$4" "$5'} | sed 's/:/ hours, /' | sed -r 's/,$/ minutes/'

Report this snippet 

You need to login to post a comment.