I wrote: | > start=`perl -e 'print time'` | > .... body of script here ... | > end=`perl -e 'print time'` | > echo "took `expr $end - $start` seconds"
Whoops - left off the quote around "print time" in the second perl. On 18:18 21 Aug 2003, Bret Hughes <[EMAIL PROTECTED]> wrote: | Hmmm. wouldn't start=$(date +%s) be a bit more efficient? Yes, it would be. I keep forgetting about date's +format option. It didn't exist when I starting using UNIX:-) -- Cameron Simpson <[EMAIL PROTECTED]> DoD#743 http://www.cskk.ezoshosting.com/cs/ You do get used to it. It still sucks. - Universal Peeve Mantra, 242 lbs before cooking -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list