Published in: Bash
uptime | awk {'print $3" "$4" "$5'} | sed 's/:/ hours, /' | sed -r 's/,$/ minutes/'
You need to login to post a comment.
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.
mbadran on 08/26/06
8 people have marked this snippet as a favorite
samuraicoder
hides
yuconner
berkes
fugue
willcodeforfood
copyleft
Leech
Published in: Bash
uptime | awk {'print $3" "$4" "$5'} | sed 's/:/ hours, /' | sed -r 's/,$/ minutes/'
You need to login to post a comment.