Date: Sat, 24 May 2003 13:12:42 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: lbland <lbland@vvi.com> Cc: freebsd-questions@freebsd.org Subject: Re: editing uptime output with sed? Message-ID: <20030524181242.GK46907@dan.emsphone.com> In-Reply-To: <71D66F70-8E10-11D7-A088-0030659A531A@vvi.com> References: <71D66F70-8E10-11D7-A088-0030659A531A@vvi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 24), lbland said: > how do I take uptime output: > > 1:45PM up 6 days, 3:58, 11 users, load averages: 0.30, 0.24, 0.21 > > and get the 2nd to last value with sed? (how do I get sed to output > 0.24 to stdout)? uptime | sed -Ee 's/.*([0-9]+.[0-9]+),.*$/\1/' -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030524181242.GK46907>