From owner-freebsd-questions@FreeBSD.ORG Sun May 4 18:10:25 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60DEE37B401 for ; Sun, 4 May 2003 18:10:25 -0700 (PDT) Received: from mta4.rcsntx.swbell.net (mta4.rcsntx.swbell.net [151.164.30.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C7FD43F93 for ; Sun, 4 May 2003 18:10:24 -0700 (PDT) (envelope-from Hostmaster@Video2Video.Com) Received: from adsl-66-122-241-19.dsl.sndg02.pacbell.net (adsl-66-122-241-19.dsl.sndg02.pacbell.net [66.122.241.19]) h451AMPj006952; Sun, 4 May 2003 20:10:23 -0500 (CDT) Date: Sun, 4 May 2003 18:11:02 -0700 (PDT) From: Peter Leftwich X-X-Sender: root@Www.Video2Video.Com To: SDBUG , FreeBSD Questions LIST Message-ID: <20030504180640.E99631-100000@Www.Video2Video.Com> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: customize the uptime command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2003 01:10:25 -0000 $ uptime 6:06PM up 15 days, 21:12, 1 user, load averages: 0.06, 0.13, 0.08 I wonder if it is possible to rewrite the uptime command, similar to the way you can customize the output of "date" using +%H%M etc... The reason I ask is that I'd prefer a flag to standardize the format to y:m:d:H:M;S or years, months, days, hours, minutes, seconds. Or you could have some kind of "--only H" flag which would display the uptime ONLY has hours. In my case, the example above, it would be: 381 hours Is there a fast script out there can reformat the uptime perhaps?? -- Peter Leftwich President & Founder, Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com