Date: Thu, 14 Aug 2003 18:42:31 +0100 (BST) From: Richard Tobin <richard@cogsci.ed.ac.uk> To: "Charles Howse" <chowse@charter.net>, <freebsd-questions@freebsd.org> Subject: Re: Using bc in bash script Message-ID: <200308141742.SAA17915@rhymer.cogsci.ed.ac.uk> In-Reply-To: Charles Howse's message of Thu, 14 Aug 2003 10:46:45 -0500
next in thread | raw e-mail | index | archive | help
> I'm trying to calculate the number of seconds between $start_time and > $end_time in a bash script. Bash has built-in integer arithmetic: et=$[End_time - Start_time] -- Richard
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308141742.SAA17915>