标签:color linux 计算 scale col echo log seq lin
计算pi:
time (echo "scale=500;4*a(1)"|bc -l -q)
#!/bin/bash
for i in `seq 1 1000`
do
(time echo "scale=5000; 4*a(1)" | bc -l -q |grep ‘real‘) 2>> pi.log
done
标签:color linux 计算 scale col echo log seq lin
原文地址:http://www.cnblogs.com/zjd2626/p/7517949.html