Sponsored Content
Full Discussion: GeekTool
Top Forums UNIX for Dummies Questions & Answers GeekTool Post 302189579 by MastaFue on Saturday 26th of April 2008 02:38:58 PM
Old 04-26-2008
thank you for the quick response

when i use the line

uptime | sed -e 's/:/h /g' -e 's/,/min/g' | awk '{print "Uptime: " $5 " "$6}'


it looks like that

Uptime: 45min 2

But I expected it to look like this

Uptime: Xh Ymin

and please could you give me a short explanation as to what you did exactly in the line?
 

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

geekTool

Hello! Here is my problem: I try to display the uptime of my computer on my desktop with the help of a tool called GeekTool (for Mac). I want the uptime output to look like that: x day(s) y h z min (but if the pc is only running e.g for several minutes it should leave out the day and the... (1 Reply)
Discussion started by: MastaFue
1 Replies
All times are GMT -4. The time now is 02:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy