计算pi:
time (echo "scale=500;4*a(1)"|bc -l -q)
#!/bin/bashfor i in `seq 1 1000`do (time echo "scale=5000; 4*a(1)" | bc -l -q |grep 'real') 2>> pi.logdone