- belanna: 46 seconds
- nerys: 56 seconds
& on our colleen the script takes 1 minute & 22 seconds to complete. update 2: the new guinan takes 1 minute & 48 seconds. wow. [0]
#!/bin/sh [ "$#" != "1" ] && echo "Usage: $0 integer" && exit 1 STARTDATE=$(date) echo " define fac (x) { res = 1 while (x > 1) { res *=x; x -= 1; } return res; } fac ($1) " | bc ENDDATE=$(date) echo "start: $STARTDATE" echo "end: $ENDDATE" exit 0