<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for rev82</title><link>http://disqus.com/by/rev82/</link><description></description><atom:link href="http://disqus.com/rev82/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 04 Sep 2009 10:42:15 -0000</lastBuildDate><item><title>Re: My GeekTool Setup</title><link>http://posts.iamawesome.net/post/21441619611/my-geektool-setup#comment-15974323</link><description>&lt;p&gt;A somewhat messy fix for the odd uptime output seen before the one hour mark;&lt;/p&gt;&lt;p&gt;myminchk=`uptime | awk '{sub(/[0-9]|user\,|users\,|load/, "", $6); sub(/mins,|min,/, "min", $6); sub(/user\,|users\,/, "", $5); sub(",", "min", $5); sub(":", "h ", $5); sub(/[0-9]/, "", $4); sub(/day,/, " day ", $4); sub(/days,/, " days ", $4); sub(/mins,|min,/, "min", $4); sub("hrs,", "h", $4); sub(":", "h ", $3); sub(",", "min", $3); print $4}'`&lt;br&gt;if [ "$myminchk" == "min" ]&lt;br&gt;then&lt;br&gt;uptime | awk '{sub(/[0-9]|user\,|users\,|load/, "", $6); sub(/mins,|min,/, "min", $6); sub(/user\,|users\,/, "", $5); sub(",", "min", $5); sub(":", "h ", $5); sub(/[0-9]/, "", $4); sub(/day,/, " day ", $4); sub(/days,/, " days ", $4); sub(/mins,|min,/, "min", $4); sub("hrs,", "h", $4); sub(":", "h ", $3); sub(",", "min", $3); print $3$4}'&lt;br&gt;else&lt;br&gt;uptime | awk '{sub(/[0-9]|user\,|users\,|load/, "", $6); sub(/mins,|min,/, "min", $6); sub(/user\,|users\,/, "", $5); sub(",", "min", $5); sub(":", "h ", $5); sub(/[0-9]/, "", $4); sub(/day,/, " day ", $4); sub(/days,/, " days ", $4); sub(/mins,|min,/, "min", $4); sub("hrs,", "h", $4); sub(":", "h ", $3); sub(",", "min", $3); print $3$4$5$6}'&lt;br&gt;fi&lt;/p&gt;&lt;p&gt;Not at all efficient, but it does work.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rev82</dc:creator><pubDate>Fri, 04 Sep 2009 10:42:15 -0000</pubDate></item></channel></rss>